Discord.py Invalid Arguments Inside Member.server_default_channel
My current code is @client.event async def on_member_join(member): serverchannel = member.server.default_channel msg = 'Wuss poppin', {0}. Welcome to {1}'.format(member.me
Solution 1:
Default channels no longer exist. This means 2 things:
server.default_channel
may return a NoneType.- Trying to send a message to
server
may raisediscord.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.
Solution 2:
Default channels are not a thing anymore.
Post a Comment for "Discord.py Invalid Arguments Inside Member.server_default_channel"