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

14 lines
472 B
TypeScript
Raw Normal View History

2023-05-02 23:01:54 +00:00
import { SlashCommandStringOption } from 'discord.js';
import { REGION_NAMES } from '../../constants/regions';
2023-05-02 23:01:54 +00:00
2023-07-18 00:23:59 +00:00
export default function addRegionChoices(option: SlashCommandStringOption) {
2023-05-02 23:01:54 +00:00
return option
2023-07-18 00:23:59 +00:00
.setName('region')
.setDescription('The Blitz region you are in')
2023-05-02 23:01:54 +00:00
.addChoices(
{ name: REGION_NAMES.com, value: 'com' },
{ name: REGION_NAMES.eu, value: 'eu' },
{ name: REGION_NAMES.asia, value: 'asia' },
2023-05-02 23:01:54 +00:00
)
2023-05-10 20:00:30 +00:00
.setRequired(true);
2023-05-02 23:01:54 +00:00
}