diff --git a/tools/tools.py b/tools/tools.py index b29b0b5..7329f75 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -196,6 +196,10 @@ class Tools(commands.Cog): channel = ctx.channel else: channel = self.bot.get_channel(channel) + + if channel is None: + return await ctx.send("Not a valid channel.") + if channel: guild = channel.guild