Class FSSelfbot

Represents the FSSelfbot extension.

Hierarchy

  • ForgeExtension
    • FSSelfbot

Constructors

  • Creates an instance of the FSSelfbot.

    Parameters

    Returns FSSelfbot

    Will throw an error if user tokens are not provided or invalid.

Properties

description: string = ...

Description of the extension, read from package.json.

manager: Manager = ...

Manager instance for handling selfbot operations.

name: string = "FSSelfbot"

Name of the extension.

options: Omit<IFSSelfbotOptions, "userTokens">

Options for the selfbot, excluding user tokens.

requireExtensions?: string[]

A list of extension names this extension requires

targetVersions?: string[]

Only the versions written here will be allowed

tokenNames: Map<string, number> = ...

Custom Token names mapped to its token index.

version: string = ...

Version of the extension, read from package.json.

Methods

  • Returns any

  • Retrieves the name associated with a given user token.

    Parameters

    • token: string

      The user token to find the name for.

    Returns null | string

    The name if found, or null if the token is invalid or out of range.

  • Retrieves a user token associated with a given name.

    Parameters

    • name: string

      The name associated with the token.

    Returns null | string

    The user token if found, or null if the name is invalid or out of range.

  • Initializes the FSSelfbot extension.

    Parameters

    • client: ForgeClient

      The ForgeClient instance.

    Returns Promise<void>

    Will throw an error if any user token is invalid.

  • Parameters

    • path: string

    Returns void

  • Parameters

    • client: ForgeClient

    Returns void