fix(Typings): Channel#delete returns bad type (#4118)

This commit is contained in:
tiehm 2020-08-11 20:58:12 +02:00 committed by GitHub
parent e54c21bc65
commit 3df99930e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
typings/index.d.ts vendored
View file

@ -158,8 +158,8 @@ declare module 'discord.js' {
public deleted: boolean;
public id: Snowflake;
public type: keyof typeof ChannelType;
public delete(reason?: string): Promise<this>;
public fetch(): Promise<this>;
public delete(reason?: string): Promise<Channel>;
public fetch(): Promise<Channel>;
public toString(): string;
}