SLCommands
  • SLCommands Documentation
  • Easy Setup & Options Object
  • SLCommands Class Methods
  • Commands & Contexts
    • Ping command example
    • Command methods
    • Subcommands
  • Events & Features
    • How does features and events work?
    • SLCommands Events
  • Utilities
    • SLCommands Embeds
    • Custom Messages
  • Hope you liked!
Powered by GitBook
On this page
  1. Utilities

Custom Messages

PreviousSLCommands EmbedsNextHope you liked!

Last updated 2 years ago

SLCommands can handle command permissions and other checks, like devsOnly. And they are very customizable, you can handle yourself or let us handle, but with your custom messages.

To use custom messages you just need to create a JSON file and use a specific schema (). Then just pass the messages file path to your handler:

const SLHandler = require('sl-commands').default
const { join } = require('path')

new SLHandler({
  /** The absolute path to the JSON file */
  messagesPath: join(__dirname, 'messages.json'),

  commandsDir: join(__dirname, 'commands'),
  botToken: 'Your_Bot_Token',
})
import SLHandler from 'sl-commands'
import { join } from 'path'

new SLHandler({
  /** The absolute path to the JSON file */
  messagesPath: join(__dirname, 'messages.json'),

  commandsDir: join(__dirname, 'commands'),
  botToken: 'Your_Bot_Token',
})
click here to check