Discord-ts-app
  • README.md
  • GUIDE
    • Setup
    • Environment
    • Events
    • Commands
    • Middlewares
    • Modules
Powered by GitBook
On this page
  • Configure your bot is very easy
  • Environment file
  • Roles.ts
  • Channels
  • Categories

Was this helpful?

  1. GUIDE

Environment

Configure your bot is very easy

Go to the configurations folder of your application

Environment file

You can configure your secret token and the prefor of your bot

.env
CLIENT_PREFIX = "!"
SECRET_TOKEN = ""

# DIRECTORY
EVENTS_FOLDER = "Events"
COMMANDS_FOLDER = "Commands"
MIDDLEWARES_FOLDER = "Middlewares"
MODULES_FOLDER = "Modules"

# SETTINGS
DELETE_TIMEOUT_MESSAGE = 5000
NOT_ALLOW_EXECUTE_COMMAND = "You do not have permission to place this order."

Roles.ts

App/Configurations/Roles.ts
enum Roles {
  // ROLE_NAME = 'role ID',
}

export default Roles

To find roles id, please write in your discord chat @\target_role

Channels

App/Configurations/Channels.ts
enum Channels {
  // CHANNEL_NAME = 'channel ID',
}

export default Channels

Categories

App/Configurations/Categories.ts
enum Categories {
  // CATEGORY_NAME = 'category ID',
}

export default Categories
PreviousSetupNextEvents

Last updated 4 years ago

Was this helpful?

To find channel id, please right click in our channel (see more )

To find category id, it's same as channels id, please right click in our channel (see more )

here
here