Presidents
The Presidents module manages the server president system: appointing, removing, issuing decrees, and history. The president is a special role — one active per server — with the ability to issue announcements (decrees) in various categories.
Enabling the Module
- Dashboard → Your server → toggle Presidents
- Click Edit and configure the president role, announcement channels
- Save changes
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
role_id | string / null | null | Discord president role ID (assigned automatically) |
announcement_channel_id | string / null | null | Presidential announcements channel |
decree_channels | object | {} | Channels per decree type |
appoint_roles | list | [] | Roles that can appoint the president |
use_moderation_roles | boolean | false | Use moderation roles instead of appoint_roles |
decree_types | list | ["general", "economic", "military", "diplomatic"] | Available decree types |
decree_channels Structure
{
"general": "channel_id_or_null",
"economic": "channel_id_or_null",
"military": "channel_id_or_null",
"diplomatic": "channel_id_or_null"
}
If a channel for a given type is not set, the decree goes to announcement_channel_id.
Dashboard — Configuration
The Presidents edit panel contains:
- President Role — dropdown with server roles
- Announcement Channel — dropdown with channels
- Decree Channels — separate dropdowns for each decree type
- Appoint Roles — multi-select or "Use Moderation Roles" checkbox
Commands
/president appoint
Appoints a new server president.
| Parameter | Required | Description |
|---|---|---|
member | ✅ | User to appoint |
Requirements: Administrator or a role from appoint_roles / moderation_roles.
Flow:
- Checks permissions
- Ends the current president's term (if one exists)
- Removes the president role from the old one
- Inserts a new record into the
presidentstable - Assigns the president role to the new one
- Sends an announcement to
announcement_channel_id - Logs the appointment
/president remove
Removes the current president.
Requirements: Administrator or a role from appoint_roles.
Flow:
- Checks permissions
- Marks the record as
is_active = FALSEwithended_at - Removes the president role
- Logs the removal
/president info
Displays information about the current president (public embed).
Contains:
- President mention
- Term start date (relative timestamp)
- Avatar
/president history
Displays president history (last 10).
Each entry contains:
- Name/mention
- Term start and end dates
- Whether active
/president decree
Issues a presidential decree (current president only).
| Parameter | Required | Description |
|---|---|---|
decree_type | ✅ | Type: General, Economic, Military, Diplomatic |
message | ✅ | Decree content |
Decree types and colors:
| Type | Emoji | Color |
|---|---|---|
| General | 📜 | Gold (#F1C40F) |
| Economic | 💰 | Green (#2ECC71) |
| Military | ⚔️ | Red (#E74C3C) |
| Diplomatic | 🕊️ | Blue (#3498DB) |
The decree is sent as an embed to the appropriate channel (per-type or default announcement).
Permissions
| Action | Who can |
|---|---|
| Appoint/remove | Administrator, appoint_roles, moderation_roles (when enabled) |
| Issue decrees | Current president only |
| View info/history | Everyone |
Database
presidents table:
id— auto-incrementguild_id— server IDuser_id— president IDstarted_at— appointment dateended_at— term end date (null if active)is_active— whether this is the current president
Logging
Actions logged by Logs under the presidents category:
- 🎖️ President Appointed — who appointed, whom
- 🚫 President Removed — who removed
- 📜 Decree Issued — type and content (truncated)
Tips
- Create a dedicated "President" role with a distinctive color
- Configure
announcement_channel_idto a channel visible to everyone - Separate
decree_channelsallow organizing decrees thematically - Use decrees for official game-related announcements
Only one active president can exist per server. Appointing a new one automatically ends the previous one's term.