Skip to main content

Permissions and Intents

Look up the Gateway intents and Discord permissions each feature needs, and the role hierarchy rules the bot follows.

Gateway Intents by Feature

The bot always requests the Guilds intent and adds the intents below only while a feature that needs them is enabled and valid. The two privileged intents also need their switches turned on in the Discord Developer Portal.

FeatureIntents
Anti-raidServer Members (privileged)
Impersonator alertsServer Members (privileged)
Scammer alertsGuild Messages, Message Content (privileged)
Suspicious wordsGuild Messages, Message Content (privileged)
Regex rulesGuild Messages, Message Content (privileged)
Affiliate cleanupGuild Messages, Message Content (privileged)
Server toolsServer Members (privileged) unless the emoji summary is the only tool, plus Guild Voice States for the voice tool
Audit notificationsDepends on the routes, as listed in Audit Notifications
Role synchronizationServer Members (privileged)
Permission togglesNone
Thread bumpingNone
Message copiersGuild Messages, Message Content (privileged)
Message proxiesGuild Messages, Message Content (privileged)
Scheduled postsNone
Auto repliesGuild Messages, Message Content (privileged)
Event broadcastsGuild Scheduled Events
Role messagesServer Members (privileged)
RSS feedsNone
Web applicationsNone

No feature requests the Presence intent. The bot combines the intents of every enabled feature into one connection.

Bot Permissions by Feature

The install link on the Connection page requests no permissions, so give the bot a role with the permissions below. Most features don't check these permissions before they act, so a missing one shows up as an error in the logs.

FeaturePermissions the bot needs
Anti-raidBan Members for raid bans, View Channel and Send Messages in the alert and gate channels, and Manage Roles for the gate
Impersonator alertsView Channel and Send Messages in the alert channel
Scammer alertsView Channel where it reads, and Send Messages in the alert channel
Suspicious wordsView Channel where it reads, and Send Messages and Embed Links in the alert channel
Regex rulesView Channel and Manage Messages where rules apply
Affiliate cleanupView Channel and Manage Messages in every channel, and Send Messages and Embed Links in the alert channel
Server toolsBan Members, Manage Roles, or Move Members for the bulk ban, role, and voice tools
Audit notificationsView Channel where it reads, and Send Messages in each route's channel
Role synchronizationManage Roles
Permission togglesView Channel and Manage Permissions in each channel
Thread bumpingView Channel and Send Messages in Threads, and Manage Threads for locked or private threads
Message copiersView Channel where it reads, and Send Messages in each destination channel
Message proxiesView Channel in each source channel
Scheduled postsView Channel and Send Messages, plus Add Reactions and Read Message History for reactions
Auto repliesView Channel and Send Messages, plus Read Message History for reply mode
Event broadcastsView Channel and Send Messages
Role messagesView Channel and Send Messages
RSS feedsView Channel and Send Messages
Web applicationsView Channel and Create Instant Invite in the rules channel, and Send Messages in each webhook route's channel

Role Hierarchy Rules

Discord lets the bot manage only roles below its own highest role, and only members whose highest role is below the bot's.

  • Anti-raid bans — Discord refuses to ban a joining member whose highest role is at or above the bot's, and the ban report shows Discord's error.
  • Membership gate — Adds no roles at all when any gate role is at or above the bot's highest role.
  • Role synchronization — Changes none of a member's roles when a target role or the member is out of reach, and never changes the server owner.
  • /stonker-role — Refuses a role at or above the bot's highest role. Unless the invoker owns the server, it also refuses a role or a member at or above the invoker's highest role.
  • /stonker-bulk-ban — Refuses the whole list when any target who is a member sits at or above the bot's highest role. Unless the invoker owns the server, it also refuses the list when a target sits at or above the invoker's highest role.

Legacy Comparison

AreaLegacy botRewrite
Install linkThe bot scope with a fixed permission setThe bot and applications.commands scopes, no permissions
Intents12 intents, including all three privileged intents, alwaysGuilds plus only what enabled features need