CDHandler
  • CDHandler Documentation
  • Links
    • NPM Page
    • GitHub Repository
    • Example Bots using CDHandler
    • Discord Server
  • Development
    • Changelog
    • Contribute
    • Issues and Feature Requests
  • Using CDHandler
    • Installation
    • Main File
    • Commands
      • Examples
      • Slash Commands
    • Intellisense
    • Events
    • Features
    • Prefixes
  • Other Packages
    • CDGen
    • CDColours
    • CDCommands
Powered by GitBook
On this page
  • How to add a prefix to a specific guild?
  • How to get a prefix from a specific guild?

Was this helpful?

  1. Using CDHandler

Prefixes

Per guild prefixes are pretty cool! Here are some ways to get a prefix from a guild and such!

How to add a prefix to a specific guild?

handler.prefixes.set('guild id', 'new prefix')

How to get a prefix from a specific guild?

handler.prefixes.get('guild id') || handler.prefix

We recommend storing the prefixes in a db, and then, make a loop to add the prefix to the guild when the bot restarts.

PreviousFeatures

Last updated 4 years ago

Was this helpful?