reformatted to use my template
This commit is contained in:
11
commands.ts
Normal file
11
commands.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { CommandInteraction } from 'discord.js';
|
||||
import { getUser } from './util/discord';
|
||||
import Lang from 'lang/discord';
|
||||
|
||||
export async function PingCommand(interaction: CommandInteraction) {
|
||||
const user = getUser(interaction);
|
||||
interaction.reply(Lang.getEmbed('command.ping', {
|
||||
username: user.username,
|
||||
avatar: user.avatarURL()
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user