def say_welcome_channel(self, server, msg):
welcome_channel = self.bot.server_settings_list[server.id]["welcome_channel"]
if welcome_channel:
try:
await self.bot.send_message(self.bot.get_channel(welcome_channel), msg)
except (discord.Forbidden, discord.NotFound, discord.InvalidArgument):
await self.bot.send_message(server.default_channel, WELCOME_CHANNEL_NOT_FOUND)
else:
await self.bot.send_message(server.default_channel, msg)
# As auto_change_nick is now off by default, there is no need for an on_server_join() method
评论列表
文章目录