Server Level Extension

Hierarchy

Implements

Constructors

Properties

buttonMethodMap: {
    [buttonName: string]: ButtonCallback;
} = ...

Type declaration

commandMethodMap: {
    [commandName: string]: CommandCallback;
} = ...

Type declaration

modalMethodMap: {
    [modalName: string]: ModalSubmitCallback;
} = ...

Type declaration

helpEmbedsSent: boolean = false

Accessors

Methods

  • The /make_calendar_string and /make_calendar_string_all commands

    Makes calendar titles for all approved queues

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>
    • generateAll: boolean

      whether to generate string for all the queue roles

    Returns Promise<string>

  • Interface to the command processor. If the extension can handle this slash command, it should reply inside this method

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>

      the slash command that's guaranteed to be handled by this extension

    Returns Promise<void>

  • Interface to the modal submit processor. If the extension can handle this button, it should reply inside this method

    Parameters

    • interaction: ModalSubmitInteraction<CacheType>

      the modal that's guaranteed to be handled by this extension

    Returns Promise<void>

  • Refreshes the calendar emebed for the specified queue

    Returns

    Parameters

    • queueName: string
    • interaction: ButtonInteraction<CacheType>

    Returns Promise<string>

  • The /set_public_embd_url command

    Sets the public embed url for the server's calendar

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>

    Returns Promise<string>

  • Seperates the button name and queue name from the button interaction custom id

    Returns

    [buttonName, queueName]

    Parameters

    • interaction: ButtonInteraction<CacheType>

    Returns [string, string]

  • The /set_calendar [calendar_id] command

    Updates the calendar id in the shared calendar extension states

    • Triggers the queue level extensions to update

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>

    Returns Promise<string>

Generated using TypeDoc