From b0e53e9c6d82bdb3392bb4311f7a57665c8a79f1 Mon Sep 17 00:00:00 2001 From: Jan <66554238+Vaporox@users.noreply.github.com> Date: Tue, 11 Aug 2020 20:53:29 +0200 Subject: [PATCH] docs(Message): add NewsChannel type to Message#channel (#4680) --- src/structures/Message.js | 4 ++-- typings/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index fd28c6b7d..cbc39c3ca 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -23,14 +23,14 @@ class Message extends Base { /** * @param {Client} client The instantiating client * @param {Object} data The data for the message - * @param {TextChannel|DMChannel} channel The channel the message was sent in + * @param {TextChannel|DMChannel|NewsChannel} channel The channel the message was sent in */ constructor(client, data, channel) { super(client); /** * The channel that the message was sent in - * @type {TextChannel|DMChannel} + * @type {TextChannel|DMChannel|NewsChannel} */ this.channel = channel; diff --git a/typings/index.d.ts b/typings/index.d.ts index 237036127..1eb6930d8 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -929,7 +929,7 @@ declare module 'discord.js' { } export class Message extends Base { - constructor(client: Client, data: object, channel: TextChannel | DMChannel); + constructor(client: Client, data: object, channel: TextChannel | DMChannel | NewsChannel); private _edits: Message[]; private patch(data: object): void;