Skip to content

Commit

Permalink
fix(APIApplicationCommandOption): correct type for integer and number (
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Jan 2, 2022
1 parent 0cf51ab commit fe1f531
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base.ts';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared.ts';

export interface APIApplicationCommandIntegerOptionBase
interface APIApplicationCommandIntegerOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Integer> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base.ts';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared.ts';

export interface APIApplicationCommandNumberOptionBase
interface APIApplicationCommandNumberOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Number> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -14,7 +14,7 @@ import type {
APIApplicationCommandInteractionDataStringOption,
} from './_chatInput/string.ts';
import type {
APIApplicationCommandIntegerOptionBase,
APIApplicationCommandIntegerOption,
APIApplicationCommandInteractionDataIntegerOption,
} from './_chatInput/integer.ts';
import type {
Expand All @@ -38,7 +38,7 @@ import type {
APIApplicationCommandInteractionDataMentionableOption,
} from './_chatInput/mentionable.ts';
import type {
APIApplicationCommandNumberOptionBase,
APIApplicationCommandNumberOption,
APIApplicationCommandInteractionDataNumberOption,
} from './_chatInput/number.ts';
import type {
Expand Down Expand Up @@ -67,13 +67,13 @@ export * from './_chatInput/shared.ts';
*/
export type APIApplicationCommandBasicOption =
| APIApplicationCommandStringOption
| APIApplicationCommandIntegerOptionBase
| APIApplicationCommandIntegerOption
| APIApplicationCommandBooleanOption
| APIApplicationCommandUserOption
| APIApplicationCommandChannelOption
| APIApplicationCommandRoleOption
| APIApplicationCommandMentionableOption
| APIApplicationCommandNumberOptionBase;
| APIApplicationCommandNumberOption;

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base.ts';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared.ts';

export interface APIApplicationCommandIntegerOptionBase
interface APIApplicationCommandIntegerOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Integer> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base.ts';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared.ts';

export interface APIApplicationCommandNumberOptionBase
interface APIApplicationCommandNumberOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Number> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -14,7 +14,7 @@ import type {
APIApplicationCommandInteractionDataStringOption,
} from './_chatInput/string.ts';
import type {
APIApplicationCommandIntegerOptionBase,
APIApplicationCommandIntegerOption,
APIApplicationCommandInteractionDataIntegerOption,
} from './_chatInput/integer.ts';
import type {
Expand All @@ -38,7 +38,7 @@ import type {
APIApplicationCommandInteractionDataMentionableOption,
} from './_chatInput/mentionable.ts';
import type {
APIApplicationCommandNumberOptionBase,
APIApplicationCommandNumberOption,
APIApplicationCommandInteractionDataNumberOption,
} from './_chatInput/number.ts';
import type {
Expand Down Expand Up @@ -67,13 +67,13 @@ export * from './_chatInput/shared.ts';
*/
export type APIApplicationCommandBasicOption =
| APIApplicationCommandStringOption
| APIApplicationCommandIntegerOptionBase
| APIApplicationCommandIntegerOption
| APIApplicationCommandBooleanOption
| APIApplicationCommandUserOption
| APIApplicationCommandChannelOption
| APIApplicationCommandRoleOption
| APIApplicationCommandMentionableOption
| APIApplicationCommandNumberOptionBase;
| APIApplicationCommandNumberOption;

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared';

export interface APIApplicationCommandIntegerOptionBase
interface APIApplicationCommandIntegerOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Integer> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared';

export interface APIApplicationCommandNumberOptionBase
interface APIApplicationCommandNumberOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Number> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
8 changes: 4 additions & 4 deletions payloads/v8/_interactions/_applicationCommands/chatInput.ts
Expand Up @@ -14,7 +14,7 @@ import type {
APIApplicationCommandInteractionDataStringOption,
} from './_chatInput/string';
import type {
APIApplicationCommandIntegerOptionBase,
APIApplicationCommandIntegerOption,
APIApplicationCommandInteractionDataIntegerOption,
} from './_chatInput/integer';
import type {
Expand All @@ -38,7 +38,7 @@ import type {
APIApplicationCommandInteractionDataMentionableOption,
} from './_chatInput/mentionable';
import type {
APIApplicationCommandNumberOptionBase,
APIApplicationCommandNumberOption,
APIApplicationCommandInteractionDataNumberOption,
} from './_chatInput/number';
import type {
Expand Down Expand Up @@ -67,13 +67,13 @@ export * from './_chatInput/shared';
*/
export type APIApplicationCommandBasicOption =
| APIApplicationCommandStringOption
| APIApplicationCommandIntegerOptionBase
| APIApplicationCommandIntegerOption
| APIApplicationCommandBooleanOption
| APIApplicationCommandUserOption
| APIApplicationCommandChannelOption
| APIApplicationCommandRoleOption
| APIApplicationCommandMentionableOption
| APIApplicationCommandNumberOptionBase;
| APIApplicationCommandNumberOption;

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared';

export interface APIApplicationCommandIntegerOptionBase
interface APIApplicationCommandIntegerOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Integer> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
Expand Up @@ -5,7 +5,7 @@ import type {
} from './base';
import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from './shared';

export interface APIApplicationCommandNumberOptionBase
interface APIApplicationCommandNumberOptionBase
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.Number> {
/**
* If the option is an `INTEGER` or `NUMBER` type, the minimum value permitted.
Expand Down
8 changes: 4 additions & 4 deletions payloads/v9/_interactions/_applicationCommands/chatInput.ts
Expand Up @@ -14,7 +14,7 @@ import type {
APIApplicationCommandInteractionDataStringOption,
} from './_chatInput/string';
import type {
APIApplicationCommandIntegerOptionBase,
APIApplicationCommandIntegerOption,
APIApplicationCommandInteractionDataIntegerOption,
} from './_chatInput/integer';
import type {
Expand All @@ -38,7 +38,7 @@ import type {
APIApplicationCommandInteractionDataMentionableOption,
} from './_chatInput/mentionable';
import type {
APIApplicationCommandNumberOptionBase,
APIApplicationCommandNumberOption,
APIApplicationCommandInteractionDataNumberOption,
} from './_chatInput/number';
import type {
Expand Down Expand Up @@ -67,13 +67,13 @@ export * from './_chatInput/shared';
*/
export type APIApplicationCommandBasicOption =
| APIApplicationCommandStringOption
| APIApplicationCommandIntegerOptionBase
| APIApplicationCommandIntegerOption
| APIApplicationCommandBooleanOption
| APIApplicationCommandUserOption
| APIApplicationCommandChannelOption
| APIApplicationCommandRoleOption
| APIApplicationCommandMentionableOption
| APIApplicationCommandNumberOptionBase;
| APIApplicationCommandNumberOption;

/**
* https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure
Expand Down

0 comments on commit fe1f531

Please sign in to comment.