2FA and Elevated Permissions


If a guild owner enables the server's "two-factor authentication for moderation" setting, everyone executing a certain segment of actions will need to have two-factor authentication (2FA) enabled on their account. Since bots do not have 2FA themselves, you as the bot owner, will need to enable it on your account.
The permissions assigned to these actions are referred to as "elevated permissions". Elevated permissions include but may not limited to: ADMINISTRATOR, KICK_MEMBERS, BAN_MEMBERS, MANAGE_CHANNELS, MANAGE_GUILD, MANAGE_WEBHOOKS, MANAGE_MESSAGES, MANAGE_ROLES, and MANAGE_EMOJIS.

More info about enabling 2FA can be found in Discord's support article.