使用discordapi,我经常看到:@client。我的第一个问题是你怎么称呼这些?我以前只知道@overwrite,这只是因为视觉上的原因
我真的不知道它们是如何工作的,这就引出了我的主要问题:
如何在客户机类中使用@things:
class CoustumeClient(discord.Client):
def __init__(self, **options):
super().__init__(**options)
self.bot_channel = []
self.search_channel = 713078892885442621
@client.command
async def ping(self, ctx):
似乎不起作用
如果它在类(Cog)上
@client.command
不起作用,则使用@commands.command
相关问题 更多 >
编程相关推荐