mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
15 lines
472 B
TypeScript
15 lines
472 B
TypeScript
import { SlashCommandStringOption } from 'discord.js';
|
|
import { REGION_NAMES } from '../../constants/regions';
|
|
|
|
export default function addRegionChoices(option: SlashCommandStringOption) {
|
|
return option
|
|
.setName('region')
|
|
.setDescription('The Blitz region you are in')
|
|
.addChoices(
|
|
{ name: REGION_NAMES.com, value: 'com' },
|
|
{ name: REGION_NAMES.eu, value: 'eu' },
|
|
{ name: REGION_NAMES.asia, value: 'asia' },
|
|
)
|
|
.setRequired(true);
|
|
}
|