Class DiscordGuilds

Represents a class for interacting with Discord guilds.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

client: Client

The client used to make requests.

Methods

  • Retrieves information about a Discord guild.

    Parameters

    • Optional id: string = "949096817050648636"

      The ID of the guild. Defaults to "949096817050648636" which represents the current user's guild.

    Returns Promise<any>

    • A promise that resolves with the guild information.
  • Makes an HTTP request to the specified endpoint.

    Parameters

    • endpoint: string

      The endpoint to make the request to.

    • Optional data: any

      The data to send with the request (optional).

    Returns Promise<any>

    A Promise that resolves to the response data.

    Throws

    If the request fails.

Generated using TypeDoc