Skip to main content

ExtendedInteraction

extends CommandInteraction

This class extends the CommandInteraction object from the Discord.js framework. These properties are used to reduce errors and apply best practices when working with Discord.js commands.

Extended Properties

ParameterType
mentionsMessageMentions
memberGuildMember
customIdstring
authorGuildMember
contentstring
export interface ExtendedInteraction extends CommandInteraction {
mentions: MessageMentions;
member: GuildMember;
customId: string;
author: GuildMember;
content: string;
}