mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: argument order
This commit is contained in:
1 parent
e2debc5a25
commit
9ecb1578e9
2 files changed
+11
-13
No files matched your search
@@ -16,8 +16,6 @@ export const CLANS = {
|
|||||||
smri: 'Samurai',
|
smri: 'Samurai',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const inDev = true;
|
|
||||||
|
|
||||||
export async function execute(
|
export async function execute(
|
||||||
interaction: ChatInputCommandInteraction<CacheType>,
|
interaction: ChatInputCommandInteraction<CacheType>,
|
||||||
) {
|
) {
|
||||||
|
|||||||
+11
-11
@@ -95,6 +95,17 @@ export async function execute(
|
|||||||
export const data = new SlashCommandBuilder()
|
export const data = new SlashCommandBuilder()
|
||||||
.setName('stats')
|
.setName('stats')
|
||||||
.setDescription("Gets the user's in-game statistics")
|
.setDescription("Gets the user's in-game statistics")
|
||||||
|
.addStringOption((option) =>
|
||||||
|
option
|
||||||
|
.setName('period')
|
||||||
|
.setDescription('The last number of days of stats')
|
||||||
|
.setChoices(
|
||||||
|
{ name: '30 Days', value: '30' },
|
||||||
|
{ name: '90 Days', value: '90' },
|
||||||
|
{ name: 'Career', value: 'career' },
|
||||||
|
)
|
||||||
|
.setRequired(true),
|
||||||
|
)
|
||||||
.addStringOption((option) =>
|
.addStringOption((option) =>
|
||||||
option
|
option
|
||||||
.setName('server')
|
.setName('server')
|
||||||
@@ -111,15 +122,4 @@ export const data = new SlashCommandBuilder()
|
|||||||
.setName('ign')
|
.setName('ign')
|
||||||
.setDescription('The username you use in Blitz')
|
.setDescription('The username you use in Blitz')
|
||||||
.setRequired(true),
|
.setRequired(true),
|
||||||
)
|
|
||||||
.addStringOption((option) =>
|
|
||||||
option
|
|
||||||
.setName('period')
|
|
||||||
.setDescription('The last number of days of stats')
|
|
||||||
.setChoices(
|
|
||||||
{ name: '30 Days', value: '30' },
|
|
||||||
{ name: '90 Days', value: '90' },
|
|
||||||
{ name: 'Career', value: 'career' },
|
|
||||||
)
|
|
||||||
.setRequired(true),
|
|
||||||
);
|
);
|
||||||
Reference in new issue
Block a user