mirror of
https://github.com/sern-handler/handler
synced 2026-06-28 02:32:15 +00:00
refactor(options.ts): move options type declarations to types folder
This commit is contained in:
26
src/types/options.ts
Normal file
26
src/types/options.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import type {
|
||||
ApplicationCommandAutocompleteOption,
|
||||
ApplicationCommandChannelOptionData,
|
||||
ApplicationCommandChoicesOption,
|
||||
ApplicationCommandNonOptionsData,
|
||||
ApplicationCommandNumericOptionData,
|
||||
ApplicationCommandSubCommandData,
|
||||
ApplicationCommandSubGroupData
|
||||
} from 'discord.js';
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user