@tanzanite/discord-akairo
    Preparing search index...

    Class ContextMenuCommandAbstract

    Represents a context menu command.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    category: Category<string, ContextMenuCommand>

    The category this module belongs to.

    categoryID: string

    The ID of the category this module belongs to.

    client: AkairoClient

    The client thant instantiated this module.

    contexts?: readonly InteractionContextType[]

    Interaction context(s) where the command can be used

    Only for globally-scoped commands

    defaultMemberPermissions?: null | PermissionResolvable

    The default bitfield used to determine whether this command be used in a guild

    dmPermission?: boolean

    Whether the command is enabled in DMs

    Cannot be enabled for command that specify guilds

    filepath: string

    The filepath of this module.

    guilds?: string[]

    Assign context menu commands to Specific guilds. This option will make the commands not register globally, but only in the chosen servers.

    The handler for this module.

    id: string

    The ID of this module.

    integrationTypes?: readonly ApplicationIntegrationType[]

    Installation context(s) where the command is available

    Only for globally-scoped commands

    name: string

    The name of the context menu command.

    nameLocalizations?: Partial<Record<Locale, null | string>>

    Name localization.

    nsfw: boolean

    Whether the command is NSFW

    ownerOnly: boolean

    Usable only by the client owner.

    superUserOnly: boolean

    Whether or not to allow client superUsers(s) only.

    type: User | Message

    The type of the context menu command.

    Methods