Permissions
Aphonos requires specific Discord permissions to perform moderation, management, and utility functions. You can configure these permissions either through server role settings or in the Discord Developer Portal.Permission configuration methods
There are two ways to grant Aphonos the permissions it needs:Role permissions
Configure permissions through the bot’s role in your server settings
Bot permissions
Set permissions in the Discord Developer Portal before inviting
Required permissions
Here are the permissions Aphonos needs to function properly:| Role Permissions (In-server) | Bot Permissions (Dev Portal) | Required For |
|---|---|---|
| Kick, Approve and Reject Members | Kick Members | /kick command |
| Ban Members | Ban Members | /ban command |
| Time out members | Moderate Members | /timeout command |
| Manage Messages | Manage Messages | /clear, /archives commands |
| Send Messages | Send Messages | Sending responses and embeds |
| Embed Links | Embed Links | Rich embed responses |
| Read Message History | Read Message History | Message archiving, context |
| Add Reactions | Add Reactions | Reaction roles, interactive features |
| View Channels | View Channels | Accessing channels for commands |
These are the core permissions. Some features may require additional permissions. For self-hosted instances, consider enabling all permissions for full functionality.
Setting up permissions
Method 1: Role permissions (recommended)
Find the bot's role
Locate the role that was automatically created when you invited Aphonos (it usually has the same name as the bot)
Configure permissions
Enable the following permissions for the bot’s role:
- Kick Members
- Ban Members
- Moderate Members (for timeouts)
- Manage Messages
- Send Messages
- Embed Links
- Read Message History
- Add Reactions
- View Channels
Method 2: Bot permissions (Developer Portal)
Open the Developer Portal
Go to the Discord Developer Portal and select your application
Select permissions
Under Bot Permissions, select:
- Kick Members
- Ban Members
- Moderate Members
- Manage Messages
- Send Messages
- Embed Links
- Read Message History
- Add Reactions
- View Channels
Permission details
Moderation permissions
Kick Members
Kick Members
Required for the
/kick command. Allows Aphonos to remove members from the server without banning them.Ban Members
Ban Members
Required for the
/ban command. Allows Aphonos to permanently ban members from the server.Moderate Members
Moderate Members
Required for the
/timeout command. Allows Aphonos to temporarily timeout members, preventing them from sending messages or joining voice channels.Management permissions
Manage Messages
Manage Messages
Critical for the
/clear command and message archiving features. Allows Aphonos to delete messages and maintain message history.Communication permissions
Send Messages
Send Messages
Essential permission that allows Aphonos to send command responses and notifications in text channels.
Embed Links
Embed Links
Required for sending rich embeds. Most Aphonos responses use embeds for better formatting and user experience.
Read Message History
Read Message History
Necessary for the
/archives command and message context. Allows Aphonos to access previous messages in channels.Interactive permissions
Add Reactions
Add Reactions
Required for reaction role features and interactive commands. Allows Aphonos to add emoji reactions to messages.
View Channels
View Channels
Fundamental permission that allows Aphonos to see and access channels where it should operate.
Gateway Intents
In addition to permissions, Aphonos requires the following Privileged Gateway Intents to be enabled in the Discord Developer Portal:Enabling Privileged Intents
Go to Developer Portal
Navigate to the Discord Developer Portal and select your bot
Enable Privileged Intents
Scroll down to the Privileged Gateway Intents section and enable:
- Server Members Intent (required for member join events and
/kick,/ban,/timeout) - Message Content Intent (required for reading message content)
Role hierarchy
For moderation commands to work properly, Aphonos’s role must be positioned higher in the role hierarchy than the users it’s moderating.Channel-specific permissions
You can restrict Aphonos to specific channels using channel permission overrides:- Right-click on a channel → Edit Channel
- Go to Permissions → Click + next to Roles/Members
- Select the Aphonos role
- Grant or deny specific permissions for that channel
Self-hosting recommendations
If you’re self-hosting Aphonos for your own server: Alternatively, enable all individual permissions listed above to maintain granular control.Troubleshooting permission issues
Bot cannot kick/ban users
Bot cannot kick/ban users
- Verify the bot has Kick Members or Ban Members permission
- Check that the bot’s role is higher than the target user’s role
- Ensure the target user is not the server owner
Bot cannot delete messages
Bot cannot delete messages
- Confirm the bot has Manage Messages permission
- Check for channel-specific permission overrides that may deny this permission
Bot responses are plain text instead of embeds
Bot responses are plain text instead of embeds
- Make sure the bot has Embed Links permission
- Check channel-specific overrides
Bot cannot see certain channels
Bot cannot see certain channels
- Verify the bot has View Channels permission
- Check channel-specific permission overrides
- Ensure the bot’s role has access to the category if the channel is in one
Verifying permissions
You can verify Aphonos’s permissions by checking the startup logs:Console output