I'm not sure but your problem is probably because of Intents. In the new version of discord.py(1.5.x), there're some updates about Intents. Intents are similar to permissions, you have to define it to get channels, members and some events etc. You have to define it before defining the bot = discord.Bot(prefix='').import discordintents = discord.Intents().all()bot = discord.Bot(prefix='', intents=intents)如果要获取有关Intent的更多信息,可以查看 API参考.If you want to get more information about Intents, you can look at the API References. 这篇关于Mass DM bot工作正常,现在不会发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-01 14:43