Skip to content

Commit b0e53e9

Browse files
authored
docs(Message): add NewsChannel type to Message#channel (#4680)
1 parent c55b5c8 commit b0e53e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/structures/Message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ class Message extends Base {
2323
/**
2424
* @param {Client} client The instantiating client
2525
* @param {Object} data The data for the message
26-
* @param {TextChannel|DMChannel} channel The channel the message was sent in
26+
* @param {TextChannel|DMChannel|NewsChannel} channel The channel the message was sent in
2727
*/
2828
constructor(client, data, channel) {
2929
super(client);
3030

3131
/**
3232
* The channel that the message was sent in
33-
* @type {TextChannel|DMChannel}
33+
* @type {TextChannel|DMChannel|NewsChannel}
3434
*/
3535
this.channel = channel;
3636

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ declare module 'discord.js' {
929929
}
930930

931931
export class Message extends Base {
932-
constructor(client: Client, data: object, channel: TextChannel | DMChannel);
932+
constructor(client: Client, data: object, channel: TextChannel | DMChannel | NewsChannel);
933933
private _edits: Message[];
934934
private patch(data: object): void;
935935

0 commit comments

Comments
 (0)