diff --git a/SecretBot.py b/SecretBot.py index 1dc8ec8..2443663 100755 --- a/SecretBot.py +++ b/SecretBot.py @@ -127,7 +127,10 @@ class SecretBot(commands.Cog): gm_role = game.get_gm_role() await game.delete() await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role) - await ctx.reply(":white_check_mark: Game deleted!") + try: + await ctx.reply(":white_check_mark: Game deleted!") + except discord.NotFound: # If the command is executed in a game channel, then the channel won't exist anymore for the reply + pass @commands.command("StartVote") async def start_vote(self, ctx: commands.Context, president: discord.Member, chancellor: discord.Member):