Hierarchy

  • GilClient

Constructors

Properties

client: Client = ...
commands: CommandManager = ...
db: DatabaseAdapter = ...
emitter: TypedEventEmitter<GilEvents> = ...
idGenerator: (() => string) = ...

Type declaration

    • (): string
    • Returns string

listeners: ListenerManager = ...
logger: LoggerAdapter = ...
options: GilClientOptions
responses: {
    errorCommand: ((p) => Embed);
    invalidArguments: ((p) => Embed);
    noop: (() => string);
    serverNotPremium: ((p) => Embed);
    userMissingRole: ((p) => Embed);
    userNotPremium: ((p) => Embed);
} = ...

Type declaration

  • errorCommand: ((p) => Embed)
      • (p): Embed
      • Parameters

        • p: {
              error_id: string;
              error_message: string;
              support_server?: string;
          }
          • error_id: string
          • error_message: string
          • Optional support_server?: string

        Returns Embed

  • invalidArguments: ((p) => Embed)
      • (p): Embed
      • Parameters

        • p: {
              extra_info: unknown;
              reason_code: string;
          }
          • extra_info: unknown
          • reason_code: string

        Returns Embed

  • noop: (() => string)
      • (): string
      • Returns string

  • serverNotPremium: ((p) => Embed)
      • (p): Embed
      • Parameters

        • p: {
              tier: string;
          }
          • tier: string

        Returns Embed

  • userMissingRole: ((p) => Embed)
      • (p): Embed
      • Parameters

        • p: {
              requiredRole: string[];
          }
          • requiredRole: string[]

        Returns Embed

  • userNotPremium: ((p) => Embed)
      • (p): Embed
      • Parameters

        • p: {
              tier: string;
          }
          • tier: string

        Returns Embed

tasks: TaskManager = ...

Methods

  • Type Parameters

    • T extends "userMissingRole" | "serverNotPremium" | "userNotPremium" | "invalidArguments" | "errorCommand" | "noop"

    Parameters

    • channel: {
          channelId: string;
      }
      • channelId: string
    • key: T
    • Optional options: {
          args: DefaultResponseParams[T][0];
      }
      • args: DefaultResponseParams[T][0]

    Returns Promise<Message>

Generated using TypeDoc