Skip to content

Commit

Permalink
chore: remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Aug 16, 2021
1 parent 2096810 commit 6e5a7de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
16 changes: 0 additions & 16 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@ export interface ApplicationCommandOptionBase {
name: string;
/** The description of the option. */
description: string;
/**
* The first required option the user has to complete.
* @deprecated Reorder the required options instead.
*/
default?: boolean;
/** Whether the parameter is required. */
required?: boolean;
}
Expand Down Expand Up @@ -410,17 +405,6 @@ export type AnyCommandOption =
| CommandBooleanOption
| CommandSubcommandOption;

/**
* @private
* @deprecated
*/
export interface CommandOption {
/** The name for the option. */
name: string;
type?: CommandOptionType;
value?: string | number | boolean;
}

/** @private */
export interface CommandStringOption {
/** The name for the option. */
Expand Down
11 changes: 0 additions & 11 deletions src/structures/interfaces/messageInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,17 +332,6 @@ export interface MessageFile {
name: string;
}

/**
* The options for {@link MessageInteractionContext#sendFollowUp}.
* @deprecated Use {@link MessageOptions} instead.
*/
export interface FollowUpMessageOptions extends EditMessageOptions {
/** Whether to use TTS for the content. */
tts?: boolean;
/** The flags to use in the message. */
flags?: number;
}

/** The options for {@link MessageInteractionContext#send} and {@link MessageInteractionContext#sendFollowUp}. */
export interface MessageOptions extends EditMessageOptions {
/** Whether to use TTS for the content. */
Expand Down
2 changes: 0 additions & 2 deletions src/structures/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const FLAGS: { [perm: string]: bigint } = {
MANAGE_NICKNAMES: 1n << 27n,
MANAGE_ROLES: 1n << 28n,
MANAGE_WEBHOOKS: 1n << 29n,
/** @deprecated */
MANAGE_EMOJIS: 1n << 30n,
MANAGE_EMOJIS_AND_STICKERS: 1n << 30n,
USE_APPLICATION_COMMANDS: 1n << 31n,
REQUEST_TO_SPEAK: 1n << 32n,
Expand Down

0 comments on commit 6e5a7de

Please sign in to comment.