feat(InteractionCreate): move to an Action handler (#5906)

This commit is contained in:
monbrey
2021-06-25 05:42:56 +10:00
committed by GitHub
parent ee025b0558
commit ea49f7ca74
4 changed files with 51 additions and 34 deletions

3
typings/index.d.ts vendored
View File

@@ -504,7 +504,7 @@ declare module 'discord.js' {
export class CommandInteraction extends Interaction {
public readonly command: ApplicationCommand | null;
public channel: TextChannel | DMChannel | NewsChannel;
public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | null;
public channelID: Snowflake;
public commandID: Snowflake;
public commandName: string;
@@ -1366,6 +1366,7 @@ declare module 'discord.js' {
}
export class MessageComponentInteraction extends Interaction {
public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | null;
public componentType: MessageComponentType;
public customID: string;
public deferred: boolean;