Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InteractionsManager

Index

Constructors

Properties

bot: Synergy
updateTimer: Timeout

Methods

  • Creates normal interactive button

    Parameters

    • name: string

      Name of the component (identifier)

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    Returns InteractiveComponent<MessageButton>

  • Creates temporary interactive button that will be removed by interactions limit or lifetime limit

    Parameters

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    • Optional interactionsLimit: number

      After reaching this amount of interactions component will be removed (-1 for no limit)

    Returns InteractiveComponent<MessageButton>

  • Creates temporary interactive button that will be removed by interactions limit or lifetime limit

    Parameters

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    • Optional interactionsLimit: number

      After reaching this amount of interactions component will be removed (-1 for no limit)

    • Optional lifeTime: number

      After this amount of milliseconds component will be removed (-1 for no limit)

    Returns InteractiveComponent<MessageButton>

  • Parameters

    • name: string

      command name

    • access: AccessTarget[]

      access targets that allowed to use this command

    • module: Module

      module that is created this command

    • Optional forGuildId: string

      guild id where to upload this command. Leave empty to global upload

    Returns InteractiveCommand<ContextMenuCommandBuilder>

  • Creates normal interactive button

    Parameters

    • name: string

      Name of the component (identifier)

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    Returns InteractiveComponent<MessageSelectMenu>

  • Creates temporary interactive select menu that will be removed by interactions limit or lifetime limit

    Parameters

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    • Optional interactionsLimit: number

      After reaching this amount of interactions component will be removed (-1 for no limit)

    Returns InteractiveComponent<MessageSelectMenu>

  • Creates temporary interactive select menu that will be removed by interactions limit or lifetime limit

    Parameters

    • access: AccessTarget[]

      Allowed access targets to interact with this component

    • module: Module

      Module that created this component

    • Optional interactionsLimit: number

      After reaching this amount of interactions component will be removed (-1 for no limit)

    • Optional lifeTime: number

      After this amount of milliseconds component will be removed (-1 for no limit)

    Returns InteractiveComponent<MessageSelectMenu>

  • Parameters

    • name: string

      command name

    • access: AccessTarget[]

      access targets that allowed to use this command

    • module: Module

      module that is created this command

    • Optional forGuildId: string

      guild id where to upload this command. Leave empty to global upload

    Returns InteractiveCommand<SlashCommandBuilder>

  • onInteractionCreate(interaction: Interaction<CacheType>): Promise<void>
  • overwriteInteractiveCommands(): Promise<void>
  • updateInteractiveCommands(): Promise<void>
  • Upload all commands to discord servers. Probably you can use this, but it's useless cuz manager execute this periodically by itself

    Returns Promise<void>

Generated using TypeDoc