Skip to content

Commit

Permalink
fix: rebase leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Oct 12, 2023
1 parent e8c1d6d commit a31b634
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class GuildOnboardingPromptOption extends Base {

/**
* The raw emoji of the option
* @type {RawEmoji}
* @type {APIPartialEmoji}
* @private
*/
this._emoji = data.emoji;
Expand Down
5 changes: 5 additions & 0 deletions packages/discord.js/src/util/APITypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIModalSubmission}
*/

/**
* @external APIPartialEmoji
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIPartialEmoji}
*/

/**
* @external APIRole
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIRole}
Expand Down
8 changes: 1 addition & 7 deletions packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ export class GuildOnboardingPrompt extends Base {

export class GuildOnboardingPromptOption extends Base {
private constructor(client: Client, data: APIGuildOnboardingPromptOption, guildId: Snowflake);
private _emoji: RawEmoji;
private _emoji: APIPartialEmoji;

public id: Snowflake;
public get emoji(): Emoji | GuildEmoji | null;
Expand Down Expand Up @@ -5815,12 +5815,6 @@ export interface GuildOnboardingPromptOptionData {
emoji?: EmojiIdentifierResolvable | Emoji | null;
}

export interface RawEmoji {
id: Snowflake | null;
name: string;
animated: boolean;
}

export type HexColorString = `#${string}`;

export interface IntegrationAccount {
Expand Down
29 changes: 0 additions & 29 deletions test.mjs

This file was deleted.

0 comments on commit a31b634

Please sign in to comment.