Command:Set - Vulps22/truth-or-dare-discord-bot GitHub Wiki
Command: /set
Summary
Description
The /set
command provides administrators with configuration options for customizing bot behavior within their Discord server.
Available Settings
- Notification Channels: Assign channels for bot announcements or level-up notifications.
- XP Adjustments: Customize the server XP gained or lost from various in-game actions.
- Level-Based Roles (Premium Feature): Set level requirements for specific server roles.
Parameters
Each subcommand has its own set of parameters:
/set channel
Parameter |
Type |
Required |
Description |
event |
String |
Yes |
The type of notification (announcements or levelup ). |
channel |
Channel |
Yes |
The channel where the notification should be sent. |
/set xp
Parameter |
Type |
Required |
Description |
type |
String |
Yes |
The type of XP adjustment (e.g., dare_success , truth_fail , message_sent ). |
amount |
Number |
Yes |
The amount of server XP gained or lost (must be 0 or higher). |
/set level-for-role
(Premium)
Parameter |
Type |
Required |
Description |
role |
Role |
Yes |
The role to assign based on level. |
level |
Number |
Yes |
The level required to obtain the role. |
Subcommands
Subcommand |
Description |
/set channel |
Assigns a notification channel for bot-related updates. |
/set xp |
Adjusts the server XP gained/lost for specific in-game actions. |
/set level-for-role |
Sets the required level for a specific role (Premium feature). |
Permissions & Restrictions
- Administrator permission required.
- The bot must have:
View Channel
, Send Messages
, and Attach Files
to post notifications.
Manage Roles
permission for level-based roles.
- Setting Level-Based Roles requires Premium. If the server is not premium, the bot will notify the admin.
Back to Commands Guide