diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index d1d335d10..68098ae17 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -298,7 +298,9 @@ class Core: await ctx.send("I guess not.") break try: - msg = int(msg.content) + msg = int(msg.content) - 1 + if msg < 0: + break await self.leave_confirmation(guilds[msg], owner, ctx) break except (IndexError, ValueError, AttributeError):