Allow users with MANAGE_GUILD permissions to be exempt from roleping
This commit is contained in:
parent
a0bb1a6c98
commit
05527a74a3
1 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,8 @@ class Jarvis(Snake):
|
|||
|
||||
async def roleping(self, message: Message) -> None:
|
||||
"""Handle roleping events."""
|
||||
if message.author.has_permission(Permissions.MANAGE_GUILD):
|
||||
return
|
||||
if await Roleping.collection.count_documents(q(guild=message.guild.id, active=True)) == 0:
|
||||
return
|
||||
rolepings = await Roleping.find(q(guild=message.guild.id, active=True)).to_list(None)
|
||||
|
|
Loading…
Add table
Reference in a new issue