Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Access: AccessTarget[] = ...

Access targets of this module. This describes who can use it

Author: string = "Thomasss#9258"

Author who created this module. Put here your name or nickname

Category: string = "Info"

Category of the module. Standard ones is BOT, Admin, Info, Utility, Moderation and so on

Description: string = "Using this command you can view your, or someone's profile."

Brief description of the module

InitPriority: number = 1

Priority relative to other modules when module should be initialized.

Logger: ModuleLogger = ...
Name: string = "Profile"

Name of the module. Recommended to be equal with class name

Permissions: Permissions = ...

Permissions of the bot your module require. THIS FEATURE IS NOT IMPLEMENTED AT THIS MOMENT

SlashCommands: InteractiveCommand<SlashCommandBuilder>[] = []
UUID: string
bot: Synergy

Methods

  • Init(): Promise<void>
  • UnLoad(): Promise<void>
  • Called when Synergy unloads the module or shutting down themself. Override this to remove any timers and save the data

    Returns Promise<void>

  • Creates interactive Context Menu Command

    Parameters

    • name: string

      Name of the Context Menu command to create

    • Optional access: AccessTarget[]

      Allowed access targets to interact with this command

    • Optional forGuildId: string

      Guild id where to upload this command. Leave empty to upload globally

    Returns InteractiveCommand<ContextMenuCommandBuilder>

  • Creates interactive Slash Command and adds it to this.SlashCommands

    Parameters

    • name: string

      Name of the slash command to create (Lowercase only)

    • Optional access: AccessTarget[]

      Allowed access targets to interact with this command

    • Optional forGuildId: string

      Guild id where to upload this command. Leave empty to upload globally

    Returns InteractiveCommand<SlashCommandBuilder>

Generated using TypeDoc