浏览代码

Merge branch 'master' into development

tags/v1.8.0
Roxie Gibson 6 年前
父节点
当前提交
286b687922
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      roxbot/cogs/gss.py

+ 4
- 1
roxbot/cogs/gss.py 查看文件

@@ -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):

正在加载...
取消
保存