mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: moved cmdName behaviour to interaction create
This commit is contained in:
1 parent
3e8e198c88
commit
6f21789c46
17 files changed
+21
-37
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { SlashCommandBuilder } from 'discord.js';
|
||||
import cmdName from '../core/interaction/cmdName.js';
|
||||
import { CommandRegistry } from '../events/interactionCreate.js';
|
||||
|
||||
export default {
|
||||
@@ -9,7 +8,7 @@ export default {
|
||||
handlesInteraction: true,
|
||||
|
||||
command: new SlashCommandBuilder()
|
||||
.setName(cmdName('ping'))
|
||||
.setName('ping')
|
||||
.setDescription('Check if the bot is alive'),
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
Reference in new issue
Block a user