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

    Type Alias ContextMenuCommandOptions

    ContextMenuCommandOptions: AkairoModuleOptions & {
        contexts?: readonly InteractionContextType[];
        defaultMemberPermissions?: PermissionResolvable | null;
        dmPermission?: boolean;
        guilds?: Snowflake[];
        integrationTypes?: readonly ApplicationIntegrationType[];
        name: string;
        nameLocalizations?: LocalizationMap;
        nsfw?: boolean;
        ownerOnly?: boolean;
        superUserOnly?: boolean;
        type: ApplicationCommandType.User | ApplicationCommandType.Message;
    }

    Options to use for context menu command execution behavior.

    Type declaration

    • Optionalcontexts?: readonly InteractionContextType[]

      Interaction context(s) where the command can be used

      Only for globally-scoped commands

    • OptionaldefaultMemberPermissions?: PermissionResolvable | null

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

    • OptionaldmPermission?: boolean

      Whether the command is enabled in DMs

      Cannot be enabled for commands that specify guilds

      guilds.length > 0 ? undefined : true
      
    • Optionalguilds?: Snowflake[]

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

      []
      
    • OptionalintegrationTypes?: readonly ApplicationIntegrationType[]

      Installation context(s) where the command is available

      Only for globally-scoped commands

    • name: string

      The name of the context menu command.

    • OptionalnameLocalizations?: LocalizationMap

      Name localization.

    • Optionalnsfw?: boolean

      Whether the command is NSFW

      false
      
    • OptionalownerOnly?: boolean

      Usable only by the client owner.

      false
      
    • OptionalsuperUserOnly?: boolean

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

      false
      
    • type: ApplicationCommandType.User | ApplicationCommandType.Message

      The type of the context menu command.