docs(Message): add NewsChannel type to Message#channel (#4680)

This commit is contained in:
Jan
2020-08-11 20:53:29 +02:00
committed by GitHub
parent c55b5c8c19
commit b0e53e9c6d
2 changed files with 3 additions and 3 deletions

View File

@@ -23,14 +23,14 @@ class Message extends Base {
/** /**
* @param {Client} client The instantiating client * @param {Client} client The instantiating client
* @param {Object} data The data for the message * @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) { constructor(client, data, channel) {
super(client); super(client);
/** /**
* The channel that the message was sent in * The channel that the message was sent in
* @type {TextChannel|DMChannel} * @type {TextChannel|DMChannel|NewsChannel}
*/ */
this.channel = channel; this.channel = channel;

2
typings/index.d.ts vendored
View File

@@ -929,7 +929,7 @@ declare module 'discord.js' {
} }
export class Message extends Base { 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 _edits: Message[];
private patch(data: object): void; private patch(data: object): void;