Slash commands
Slash commands are the primary way to interact with bots
Last updated
Was this helpful?
Slash commands are the primary way to interact with bots
Last updated
Was this helpful?
Was this helpful?
import { Interaction } from 'detritus-client'
import { BaseSlashCommand } from '../base'
export default class PingCommand extends BaseSlashCommand {
constructor () {
super({
description: 'Ping',
name: 'ping'
})
}
async run (context: Interaction.InteractionContext): Promise<void> {
await context.editOrRespond(context, 'Pong!')
}
}
constructor () {
super({
description: 'Ping',
name: 'ping',
guildIds: ['110462143152803840']
})
}