Skip to content

Commit

Permalink
chore: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Moebits committed Sep 6, 2024
1 parent 11d3d8b commit 27918d0
Showing 1 changed file with 20 additions and 37 deletions.
57 changes: 20 additions & 37 deletions packages/builders/src/interactions/slashCommands/options/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,26 @@ export type ApplicationCommandOptionStringType =
*/
export type ApplicationCommandOptionTypeMap<
OptionType extends ApplicationCommandOptionStringType | ApplicationCommandOptionType | undefined,
> = OptionType extends ApplicationCommandOptionType.Attachment
? SlashCommandAttachmentOption
: OptionType extends ApplicationCommandOptionType.Boolean
? SlashCommandBooleanOption
: OptionType extends ApplicationCommandOptionType.Channel
? SlashCommandChannelOption
: OptionType extends ApplicationCommandOptionType.Integer
? SlashCommandIntegerOption
: OptionType extends ApplicationCommandOptionType.Mentionable
? SlashCommandMentionableOption
: OptionType extends ApplicationCommandOptionType.Number
? SlashCommandNumberOption
: OptionType extends ApplicationCommandOptionType.Role
? SlashCommandRoleOption
: OptionType extends ApplicationCommandOptionType.String
? SlashCommandStringOption
: OptionType extends ApplicationCommandOptionType.User
? SlashCommandUserOption
: OptionType extends 'attachment'
? SlashCommandAttachmentOption
: OptionType extends 'boolean'
? SlashCommandBooleanOption
: OptionType extends 'channel'
? SlashCommandChannelOption
: OptionType extends 'integer'
? SlashCommandIntegerOption
: OptionType extends 'mentionable'
? SlashCommandMentionableOption
: OptionType extends 'number'
? SlashCommandNumberOption
: OptionType extends 'role'
? SlashCommandRoleOption
: OptionType extends 'string'
? SlashCommandStringOption
: OptionType extends 'user'
? SlashCommandUserOption
: SlashCommandStringOption;
> =
OptionType extends ApplicationCommandOptionType.Attachment ? SlashCommandAttachmentOption :
OptionType extends ApplicationCommandOptionType.Boolean ? SlashCommandBooleanOption :
OptionType extends ApplicationCommandOptionType.Channel ? SlashCommandChannelOption :
OptionType extends ApplicationCommandOptionType.Integer ? SlashCommandIntegerOption :
OptionType extends ApplicationCommandOptionType.Mentionable ? SlashCommandMentionableOption :
OptionType extends ApplicationCommandOptionType.Number ? SlashCommandNumberOption :
OptionType extends ApplicationCommandOptionType.Role ? SlashCommandRoleOption :
OptionType extends ApplicationCommandOptionType.String ? SlashCommandStringOption :
OptionType extends ApplicationCommandOptionType.User ? SlashCommandUserOption :
OptionType extends 'attachment' ? SlashCommandAttachmentOption :
OptionType extends 'boolean' ? SlashCommandBooleanOption :
OptionType extends 'channel' ? SlashCommandChannelOption :
OptionType extends 'integer' ? SlashCommandIntegerOption :
OptionType extends 'mentionable' ? SlashCommandMentionableOption :
OptionType extends 'number' ? SlashCommandNumberOption :
OptionType extends 'role' ? SlashCommandRoleOption :
OptionType extends 'string' ? SlashCommandStringOption :
OptionType extends 'user' ? SlashCommandUserOption :
SlashCommandStringOption;

/**
* Helper class to obtain any slash command option type.
Expand Down

0 comments on commit 27918d0

Please sign in to comment.