Solve DM issues

I didn't face this on official RS one but one of forks had the issue so /shrug
This commit is contained in:
Ave Ozkal 2019-04-19 02:30:32 +07:00
parent 95dd99118b
commit bbeaa8049e
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -23,9 +23,13 @@ def check_if_staff_or_ot(ctx):
def check_if_collaborator(ctx):
if not ctx.guild:
return False
return any(r.id in config.staff_role_ids + config.allowed_pin_roles
for r in ctx.author.roles)
def check_if_pin_channel(ctx):
if not ctx.guild:
return False
return ctx.message.channel.id in config.allowed_pin_channels