Files
blitzkit/src/core/discord/addServerChoices.ts
T

14 lines
476 B
TypeScript
Raw Normal View History

2023-05-02 23:01:54 +00:00
import { SlashCommandStringOption } from 'discord.js';
2023-07-11 19:54:57 +00:00
import { BLITZ_SERVERS } from '../../constants/servers';
2023-05-02 23:01:54 +00:00
export default function addServerChoices(option: SlashCommandStringOption) {
return option
.setName('server')
.setDescription('The Blitz server you are in')
.addChoices(
{ name: BLITZ_SERVERS.com, value: 'com' },
{ name: BLITZ_SERVERS.eu, value: 'eu' },
{ name: BLITZ_SERVERS.asia, value: 'asia' },
)
2023-05-10 20:00:30 +00:00
.setRequired(true);
2023-05-02 23:01:54 +00:00
}