fix(CommandInteraction): channel type should be text based channels (#5690)

Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
This commit is contained in:
Lupa
2021-06-02 07:05:35 -03:00
committed by GitHub
parent d21e6af1d2
commit 5141ea4f06
2 changed files with 8 additions and 0 deletions

1
typings/index.d.ts vendored
View File

@@ -437,6 +437,7 @@ declare module 'discord.js' {
export class CommandInteraction extends Interaction {
public readonly command: ApplicationCommand | null;
public channel: TextChannel | DMChannel | NewsChannel;
public commandID: string;
public commandName: string;
public deferred: boolean;