mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
types: Swap message reaction and emoji identifier types (#8970)
Co-authored-by: Aura Román <kyradiscord@gmail.com>
This commit is contained in:
14
typings/index.d.ts
vendored
14
typings/index.d.ts
vendored
@@ -4638,7 +4638,11 @@ export interface EmbedFooterData {
|
||||
iconURL?: string;
|
||||
}
|
||||
|
||||
export type EmojiIdentifierResolvable = string | EmojiResolvable;
|
||||
export type EmojiIdentifierResolvable =
|
||||
| EmojiResolvable
|
||||
| `${'' | 'a:'}${string}:${Snowflake}`
|
||||
| `<${'' | 'a'}:${string}:${Snowflake}>`
|
||||
| string;
|
||||
|
||||
export type EmojiResolvable = Snowflake | GuildEmoji | ReactionEmoji;
|
||||
|
||||
@@ -5490,13 +5494,7 @@ export interface MessageOptions {
|
||||
flags?: BitFieldResolvable<'SUPPRESS_EMBEDS', number>;
|
||||
}
|
||||
|
||||
export type MessageReactionResolvable =
|
||||
| MessageReaction
|
||||
| Snowflake
|
||||
| `${string}:${Snowflake}`
|
||||
| `<:${string}:${Snowflake}>`
|
||||
| `<a:${string}:${Snowflake}>`
|
||||
| string;
|
||||
export type MessageReactionResolvable = MessageReaction | Snowflake | string;
|
||||
|
||||
export interface MessageReference {
|
||||
channelId: Snowflake;
|
||||
|
||||
Reference in New Issue
Block a user