【发布时间】:2022-01-25 09:10:20
【问题描述】:
这是我的代码:
class helpcmd(nextcord.ui.View):
def __init__(self):
super().__init__()
@nextcord.ui.button(label='create thread', style=nextcord.ButtonStyle.link ,url='https://github.com/lmjaedentai/KaiCheng-Bot#commands')
async def help(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
#my code
错误:
File "d:\Desktop\coding\discordpy\main.py", line 226, in helpcmd
@nextcord.ui.button(label='create thread', style=nextcord.ButtonStyle.link ,url='https://github.com/lmjaedentai/KaiCheng-Bot#commands')
TypeError: button() got an unexpected keyword argument 'url'
【问题讨论】:
标签: python button discord.py nextcord