2FA required for moderation can be evade with bots. (NOT A BUG) #4175
Replies: 4 comments 8 replies
-
there's a few people confused by the wording on here, so I'll rephrase it as "expose to bots that an user isn't able to use moderation permissions because they don't have 2fa enabled" |
Beta Was this translation helpful? Give feedback.
-
Agreed, ruins the whole point of 2fa requirement for moderation |
Beta Was this translation helpful? Give feedback.
-
The easiest way would probably be to expose the user object's |
Beta Was this translation helpful? Give feedback.
-
I suggest not using discord.py as an example for making api calls |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If a server has require 2FA for moderation, the API will record that a person have moderation perms only when they have mod perms and have 2FA enabled
Like this: (example in dpy, author have administrator perms):
@commands.has_permissions(administrator=True) #always return True if the author turned on 2fa
@commands.has_permissions(administrator=True) #return False if the author did not turn on 2FA and the server required 2FA for moderation
@commands.has_permisssions(administrator=True) #always return True if the server does not require 2FA for moderation
Beta Was this translation helpful? Give feedback.
All reactions