From fe1868b04f8a9f4be1c09ffba0afa60f4def8595 Mon Sep 17 00:00:00 2001 From: TTtie Date: Sun, 13 Sep 2020 14:02:33 +0200 Subject: [PATCH] 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. --- v6/payloads/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v6/payloads/channel.ts b/v6/payloads/channel.ts index c28e1417..8e342b6d 100644 --- a/v6/payloads/channel.ts +++ b/v6/payloads/channel.ts @@ -64,7 +64,7 @@ export interface APIMessage { edited_timestamp: string | null; tts: boolean; mention_everyone: boolean; - mentions: APIUser & { member?: Omit }; + mentions: (APIUser & { member?: Omit })[]; mention_roles: string[]; mention_channels?: APIChannelMention[]; attachments: APIAttachment[];