mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 21:05:34 +00:00
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:
parent
95dd99118b
commit
bbeaa8049e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue