Skip to content
CPS edited this page Aug 21, 2024 · 4 revisions

FAQ - Read Carefully Before Asking

1: Why do I get the "Error: Used disallowed intents" error?

The bot requires the message_content intent because it relies on message-based commands and a setup channel.

  • Solution: Enable the message_content intent in the Discord Developer Portal:

    Enable Message Content Intent


2: Why is the bot not responding to my commands?

There could be several reasons:

  • The bot lacks required permissions: Ensure the bot has permission to read messages and send messages in the channel.
  • Prefix or slash commands: Ensure you’re using the correct prefix or slash command format.
  • Bot is offline or crashed: Check if the bot is running and online.

3: Why is the music not playing or getting disconnected?

This can happen due to several reasons:

  • Lavalink Node Issue: Ensure that your Lavalink node is running, and the configuration in config.json is correct.
  • Bot permissions: Ensure the bot has permission to join and speak in voice channels.
  • Voice Channel Timeout: If the bot is idle for too long, it may automatically disconnect. This can be configured in the bot settings.

4: How do I change the bot's prefix?

You can change the bot’s prefix by editing the prefix field in the config.json file. After making changes, restart the bot to apply them.

{
  "prefix": "!"
}

5: Why are my slash commands not working?

This could be due to the following reasons:

  • Commands not registered: Make sure that slash commands are properly registered in the Discord Developer Portal.
  • Guild-specific registration: If you registered slash commands for a specific guild, ensure you’re testing them in the correct server.
  • Missing Permissions: The bot may lack the applications.commands scope.

6: How do I add or remove admins for the bot?

To add or remove admins, edit the adminId array in the config.json file. Add or remove the user IDs of the admins you want to configure:

{
  "adminId": ["USER_ID_1", "USER_ID_2"]
}

Restart the bot after making changes.


7: How do I reset the bot's settings?

To reset the bot’s settings, you can delete or modify the relevant entries in the MongoDB database. You can also reset specific configurations in the config.json file or reset the entire configuration by restoring the original files.


8: How do I enable premium features?

Ensure that the user has been granted premium status in the MongoDB database. This can be done using the bot’s premium management commands or manually through MongoDB.


9: How do I update or change the bot's token?

If you need to change the bot’s token, update the TOKEN variable in your .env file and restart the bot:

TOKEN=YOUR_NEW_BOT_TOKEN_HERE

10: How can I invite bot to my server?

  • Go to discord developer portal
  • Click on the bot that you want to invite
  • Click on Oauth2 tab
  • Scroll down and tick all check box that same like this example:
  • Click on copy button below and use that link to invite your bot to your server.

11: Where can I get support?

For additional help, join our Discord support server coming soon, or contact us on email cpsgaming17@gmail.com .


This FAQ should cover the most common issues and questions users might have with your Discord bot.

##Thanks For reading


Wiki Sidebar

  • Home

    • Introduction and Overview
    • Features and Capabilities
  • Installing and Configuring the Bot

    • Prerequisites
    • Installation Steps
    • Configuration Guide
      • .env Configuration
      • config.json Configuration
  • Connecting MongoDB

    • Setting Up MongoDB
    • Connecting MongoDB via Driver URL
    • Configuring MongoDB in Your Bot
  • Connecting Lavalink

    • Downloading and Setting Up Lavalink
    • Configuring Lavalink in Your Bot
    • Connecting the Bot to Lavalink
    • Troubleshooting Lavalink Connections
  • FAQ

    • Common Issues and Solutions
    • How to Enable Message Content Intent
    • Bot Permissions and Command Issues
    • Music Playback and Node Configuration
    • Admin Management and Token Changes

Clone this wiki locally