cocoa-discord - v3.2.0
    Preparing search index...

    Class SlashCenter

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    allCommands?: BaseCommand[]
    client: Client
    eventHandler: {
        error: (
            (
                name: string,
                error: unknown,
                ctx: ChatInputCommandInteraction,
            ) => Awaitable<void>
        )[];
        interaction: (
            (name: string, ctx: ChatInputCommandInteraction) => Awaitable<void>
        )[];
    }
    guild_ids?: string[] | "Global"
    helpEmbed?: EmbedBuilder
    helpText: string = ""
    modules: SlashModule[] = []
    validated: boolean = false

    Methods

    • No multiple Cogs or commands should have same name, and Cog.commands key and value must be the same command name

      This function will ensure that and should be called after all cogs are added

      Note: It is recommended to use checkLogin() instead for simplicity

      Returns Promise<void>