feat: moved cmdName behaviour to interaction create

This commit is contained in:
TresAbhi committed 2023-06-21 02:01:12 +00:00
1 parent 3e8e198c88
commit 6f21789c46
17 files changed
+21 -37

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import usernameAutocomplete from '../core/autocomplete/username.js';
import getBlitzAccount from '../core/blitz/getBlitzAccount.js';
import getWargamingResponse from '../core/blitz/getWargamingResponse.js';
import cleanTable from '../core/interaction/cleanTable.js';
import cmdName from '../core/interaction/cmdName.js';
import infoEmbed from '../core/interaction/infoEmbed.js';
import addUsernameOption from '../core/options/addUsernameOption.js';
import { WARGAMING_APPLICATION_ID } from '../core/process/args.js';
@@ -17,7 +16,7 @@ export default {
inPublic: true,
command: new SlashCommandBuilder()
.setName(cmdName('playerinfo'))
.setName('playerinfo')
.setDescription('Basic information about a player')
.addStringOption(addUsernameOption),