我想发出一个命令让机器人离开一个特定的行会。await self.bot.leave_guild(guild)
await ctx.send(f":ok_hand: Left guild: {guild.name} ({guild.id我得到以下错误: AttributeError: module 'discord.ext.commands.converter' has no attribute 'Gui
我最近收到了一条2消息,与服务器的invite链接不一致,它是从不与我共享同一服务器或任何东西的机器人那里收到的 ? ? 这是如何可能的,我发现一些py代码,但只有当用户和机器人共享同一服务器时才有效 from discord.ext.commands import Bot, Greedy for use
所以基本上我想要的是,每当我的机器人加入任何行会时,它应该发送一条消息到我的服务器中的特定通道,声明它被邀请到一个服务器,如果可能的话,还有该服务器的invite链接。channel.send(f"Bot was added to {guild.name}")
AttributeError: 'NoneType' object has no attribute
你好,我一直在尝试编辑这段代码,让它工作,但我被困在一个点上,我得到了这个错误: File "main.py", line 24, in on_member_join
await client.send_messageAttributeError: 'Client' object has no attribute 'send_message' 我认为这与意图有关,但经过大量研究和时间,我无法修复它,谁能解释一下我如何修复这个问题我的代码供参考: impor