mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
feat(InteractionCreate): move to an Action handler (#5906)
This commit is contained in:
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user