Update Server_Management.py

This commit is contained in:
Bruno Rybársky 2021-10-28 17:19:54 +02:00 committed by GitHub
parent 3c5d74da06
commit 3f0790956f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,9 +60,9 @@ class Server_Management(commands.Cog):
try:
channels[str(guild.id)]
except:
channels[str(guild.id)] = guild.channels[len(guild.channels)-1].name
channels[str(guild.id)] = guild.text_channels[len(guild.text_channels)-1].name
await guild.channels[len(guild.channels)-1].send("This channel has been chosen by Edu-Kun by default "
await guild.text_channels[len(guild.text_channels)-1].send("This channel has been chosen by Edu-Kun by default "
"as channel where bot sends messages(notifications)\n"
"U can change this with command &set_channel "
"<channel_name>\n "