Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Guild

Index

Constructors

constructor

  • new Guild(__namedParameters: { features: any[]; icon: any; id: any; name: any; owner: boolean; permissions: number }): Guild
  • Parameters

    • __namedParameters: { features: any[]; icon: any; id: any; name: any; owner: boolean; permissions: number }
      • features: any[]
      • icon: any
      • id: any
      • name: any
      • owner: boolean
      • permissions: number

    Returns Guild

Properties

Readonly features

features: string[]

A list of the discord-enabled features of the guild.

Readonly iconHash

iconHash: string

The guild's icon hash.

Readonly id

id: string

The guild's unique discord ID.

Readonly isOwner

isOwner: boolean

Readonly name

name: string

Name of the guild.

Readonly permissions

permissions: string[]

A list of permissions that the authorized user has in this guild.

Accessors

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number

Methods

iconUrl

  • iconUrl(size?: number): string
  • Returns a url to the guild icon.

    Parameters

    • Default value size: number = 512

      The size of the icon in pixels. (Defaults to 512)

    Returns string

Private parsePermissions

  • parsePermissions(perms: number): any[]

Generated using TypeDoc