Fix invite link bypass in encode
This commit is contained in:
parent
989d8daff8
commit
f28646c6e6
1 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,12 @@ class DevCog(Scale):
|
|||
required=True,
|
||||
)
|
||||
async def _encode(self, ctx: InteractionContext, method: str, data: str) -> None:
|
||||
if invites.search(data):
|
||||
await ctx.send(
|
||||
"Please don't use this to bypass invite restrictions",
|
||||
ephemeral=True,
|
||||
)
|
||||
return
|
||||
mstr = method
|
||||
method = getattr(base64, method + "encode")
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue