Type Alias ContextMenuCommandOptions

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

Options to use for context menu command execution behavior.

Type declaration

  • 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.

    []
    
  • name: string

    The name of the context menu command.

  • OptionalnameLocalizations?: LocalizationMap

    Name localization.

  • 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.