You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
xlyr.on edited this page Jan 16, 2021
·
18 revisions
Slash Command
constructor
newSlash.Command(data);
Object<data>
name - String <name of command>
required
description - String <description of command>
required
permissions - Array Strings <required permissions to execute command>
required
options - Array Objects <options for command>
optional
execute - Function <function to be executed>
required
usage
commandOne.jsmodule.exports=newSlash.Command({name: 'hello',description: 'sends a hello world message',permissions: ["SEND_MESSAGES"],execute(interaction){interaction.sendMessage("Hello World")}})