mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-06 01:12:33 -05:00
[V3] Fixed [p]servers bug (#1617)
* Fixed servers bug * Added protections against going negative
This commit is contained in:
@@ -298,7 +298,9 @@ class Core:
|
|||||||
await ctx.send("I guess not.")
|
await ctx.send("I guess not.")
|
||||||
break
|
break
|
||||||
try:
|
try:
|
||||||
msg = int(msg.content)
|
msg = int(msg.content) - 1
|
||||||
|
if msg < 0:
|
||||||
|
break
|
||||||
await self.leave_confirmation(guilds[msg], owner, ctx)
|
await self.leave_confirmation(guilds[msg], owner, ctx)
|
||||||
break
|
break
|
||||||
except (IndexError, ValueError, AttributeError):
|
except (IndexError, ValueError, AttributeError):
|
||||||
|
|||||||
Reference in New Issue
Block a user