HamStudyBot/commands/hello.js

21 lines
495 B
JavaScript

module.exports = {
name: 'hello',
description: 'This is a hello command b2',
options: [
{
name: 'user',
description: 'The user to say hi to',
type: 'USER',
required: false,
}
],
execute(interaction){
const userOption = interaction.options.getUser('user');
if(userOption){
interaction.reply(`Hello, ${userOption.toString()}!`)
}
else{
interaction.reply('Hello!');
}
}
};