Minor bugfixes
This commit is contained in:
parent
1016ce317c
commit
2f9cfcf15d
3 changed files with 4 additions and 3 deletions
|
@ -83,7 +83,8 @@ class MessageEventMixin:
|
|||
"VtgZntXcnZ",
|
||||
"gPfYGbvTCE",
|
||||
]
|
||||
if (m := match.group(1)) not in allowed and setting.value:
|
||||
is_mod = message.author.has_permission(Permissions.MANAGE_GUILD) or message.author.has_permission(Permissions.ADMINISTRATOR)
|
||||
if (m := match.group(1)) not in allowed and setting.value and not is_mod:
|
||||
self.logger.debug(f"Removing non-allowed invite `{m}` from {message.guild.id}")
|
||||
try:
|
||||
await message.delete()
|
||||
|
|
|
@ -145,7 +145,7 @@ class DbrandCog(Extension):
|
|||
title="Contact Support",
|
||||
description="",
|
||||
fields=fields,
|
||||
url="https://dbrand.com/support",
|
||||
url="https://dbrand.com/contact",
|
||||
color=color,
|
||||
)
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ class UtilCog(Extension):
|
|||
)
|
||||
@cooldown(bucket=Buckets.USER, rate=1, interval=5)
|
||||
async def _avatar_slash(self, ctx: InteractionContext, user: User = None) -> None:
|
||||
await self._userinfo(ctx, user)
|
||||
await self._avatar(ctx, user)
|
||||
|
||||
@context_menu(name="Avatar", context_type=CommandTypes.USER)
|
||||
async def _avatar_menu(self, ctx: InteractionContext) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue