Discord.py Invalid arguments inside member.server_default_channel

a 夏天 提交于 2019-12-02 08:55:16

Default channels no longer exist. This means 2 things:

  1. server.default_channel may return a NoneType.
  2. Trying to send a message to server may raise discord.NotFound.

These cases will happen on any servers created after August 3rd, or any servers who have deleted their "default" channel.

You need to either choose a channel yourself, or ask the server to set a channel for the welcome message. You can still attempt to send to the server, but make sure you have a fall back option if it fails.

Default channels are not a thing anymore.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!