Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Template

Guild Template Structure

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysTemplate

_keysMerge

_keysMerge: BaseSet<string> = keysMergeTemplate

client

client: ShardClient

code

code: string = ""

createdAt

createdAt: Date

creator

creator: User

creatorId

creatorId: string = ""

description

description: string = ""

isDirty

isDirty: boolean = false

name

name: string = ""

Optional serializedSourceGuild

serializedSourceGuild: any

sourceGuildId

sourceGuildId: string = ""

updatedAt

updatedAt: Date

usageCount

usageCount: number = 0

Accessors

createdAtUnix

  • get createdAtUnix(): number
  • Returns number

isUpdated

  • get isUpdated(): boolean
  • Returns boolean

longUrl

  • get longUrl(): string
  • Returns string

shardId

  • get shardId(): number
  • Returns number

updatedAtUnix

  • get updatedAtUnix(): number
  • Returns number

url

  • get url(): string
  • Returns string

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

  • _setFromSnake(key: string, value: any): any
  • Parameters

    • key: string
    • value: any

    Returns any

delete

  • delete(): Promise<any>
  • Returns Promise<any>

difference

  • difference(key: string, value: any): [boolean, any]
  • Parameters

    • key: string
    • value: any

    Returns [boolean, any]

differences

fetch

  • Returns Promise<Template>

merge

mergeValue

  • mergeValue(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

toJSON

  • toJSON(): object
  • Returns object

Generated using TypeDoc