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
import{MessageCommand}from"../types.js";exportconstMsgCommand: MessageCommand={name: "commandName",// Other Command Optionsaliases: ["commandName2","commandName3"],// Optional to be provided.run: async(client,message,args): Promise<void>=>{// Code Here}};
Example Code
import{MessageCommand}from"../types.js";exportconstMsgCommand: MessageCommand={name: "ping",// Other Command Optionsaliases: ["pong"],run: (client,message,args): void=>{
message.channel.send({content: `My ping is ${client.ws.ping}ms.`});}};