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:
TTtie
2020-09-13 14:02:33 +02:00
committed by GitHub
parent 1700bd454e
commit fe1868b04f

View File

@@ -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[];