refactor: removed options builder as it is redundant

This commit is contained in:
jacoobes
2022-02-21 00:41:34 -06:00
parent 15ab87aac5
commit 81921937b5
2 changed files with 0 additions and 37 deletions

View File

@@ -1,27 +0,0 @@
import type {
ApplicationCommandAutocompleteOption,
ApplicationCommandChannelOptionData,
ApplicationCommandChoicesOption,
ApplicationCommandNonOptionsData,
ApplicationCommandNumericOptionData,
ApplicationCommandSubCommandData,
ApplicationCommandSubGroupData
} from 'discord.js';
// TODO : make required property optional
type BaseOption = { name : string, description : string, required : false };
export interface OptionData {
SUB_COMMAND: ApplicationCommandSubCommandData
SUB_COMMAND_GROUP: ApplicationCommandSubGroupData
NONE: ApplicationCommandNonOptionsData
CHANNEL: ApplicationCommandChannelOptionData
CHOICE: ApplicationCommandChoicesOption
AUTO: ApplicationCommandAutocompleteOption
NUMBER: ApplicationCommandNumericOptionData
INTEGER: ApplicationCommandNumericOptionData
USER : { type: 'USER' } & BaseOption
MENTIONABLE: { type : 'MENTIONABLE' } & BaseOption
ROLE : { type: 'ROLE' } & BaseOption
BOOLEAN : { type: 'BOOLEAN' } & BaseOption
}