mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
19 lines
669 B
TypeScript
19 lines
669 B
TypeScript
import { Locale, SlashCommandStringOption } from 'discord.js';
|
|
import { translator } from '../localization/translator';
|
|
import { localizationObject } from './localizationObject';
|
|
|
|
export default function addClanChoices(option: SlashCommandStringOption) {
|
|
const { translate } = translator(Locale.EnglishUS);
|
|
|
|
return option
|
|
.setName('clan')
|
|
.setNameLocalizations(localizationObject('bot.common.options.clan'))
|
|
.setDescription(translate('bot.common.options.clan.description'))
|
|
.setDescriptionLocalizations(
|
|
localizationObject('bot.common.options.clan.description'),
|
|
)
|
|
.setAutocomplete(true)
|
|
.setMinLength(2)
|
|
.setRequired(true);
|
|
}
|