1 2 3 4 5 6 7 8 | if client.get_channel(test_channel): await client.send_message(discord.Object(test_channel), 'EQ Alert sent to: ``%s`` (%s)' % ( channel.server.name, channel.server.id)) else: msg = ':mega: **Alert!**\n Channel %s does not exist. Removing...' % item if client.get_channel(test_channel): await client.send_message(discord.Object(test_channel), msg) await removeEQChannel(item) |