mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-30 07:20:10 +00:00
fix(APIMessage): Correct APIMessage#mentions type (#9)
BREAKING: APIMessage#mentions is an array of the users, not just the user by itself - this PR reflects such state.
This commit is contained in:
@@ -64,7 +64,7 @@ export interface APIMessage {
|
||||
edited_timestamp: string | null;
|
||||
tts: boolean;
|
||||
mention_everyone: boolean;
|
||||
mentions: APIUser & { member?: Omit<APIGuildMember, 'user'> };
|
||||
mentions: (APIUser & { member?: Omit<APIGuildMember, 'user'> })[];
|
||||
mention_roles: string[];
|
||||
mention_channels?: APIChannelMention[];
|
||||
attachments: APIAttachment[];
|
||||
|
||||
Reference in New Issue
Block a user