Procházet zdrojové kódy

error handling should be sorted so console doesnt get spammed.

tags/v1.7.1
Roxie Gibson před 6 roky
rodič
revize
2a9bdf3c8a
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +4
    -1
      roxbot/cogs/gss.py

+ 4
- 1
roxbot/cogs/gss.py Zobrazit soubor

@@ -41,7 +41,10 @@ class GaySoundsShitposts:
@bot.command()
async def agree(self, ctx):
role = discord.utils.get(ctx.author.guild.roles, id=450042170112475136)
return await ctx.author.remove_roles(role, reason="User has agreed the rules and has been given access to the server.")
try:
return await ctx.author.remove_roles(role, reason="User has agreed the rules and has been given access to the server.")
except discord.HTTPException:
pass

@bot.command(hidden=True)
async def perms(self, ctx, role):

Načítá se…
Zrušit
Uložit