Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseGuild

Base Guild Structure

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysBaseGuild

client

client: ShardClient

features

features: BaseSet<string> = new BaseSet<string>()

icon

icon: null | string = null

id

id: string = ""

name

name: string = ""

Accessors

acronym

  • get acronym(): string
  • Returns string

canHaveBanner

  • get canHaveBanner(): boolean
  • Returns boolean

canHaveDiscoveryFeatures

  • get canHaveDiscoveryFeatures(): boolean
  • Returns boolean

canHaveNews

  • get canHaveNews(): boolean
  • Returns boolean

canHavePublic

  • get canHavePublic(): boolean
  • Returns boolean

canHaveSplash

  • get canHaveSplash(): boolean
  • Returns boolean

canHaveStore

  • get canHaveStore(): boolean
  • Returns boolean

canHaveVanityUrl

  • get canHaveVanityUrl(): boolean
  • Returns boolean

canHaveVipRegions

  • get canHaveVipRegions(): boolean
  • Returns boolean

createdAt

  • get createdAt(): Date
  • Returns Date

createdAtUnix

  • get createdAtUnix(): number
  • Returns number

iconUrl

  • get iconUrl(): null | string
  • Returns null | string

isDiscoverable

  • get isDiscoverable(): boolean
  • Returns boolean

isPartnered

  • get isPartnered(): boolean
  • Returns boolean

isPublic

  • get isPublic(): boolean
  • Returns boolean

isVerified

  • get isVerified(): boolean
  • Returns boolean

jumpLink

  • get jumpLink(): string
  • Returns string

shardId

  • get shardId(): number
  • Returns number

widgetImageUrl

  • get widgetImageUrl(): string
  • Returns string

widgetUrl

  • get widgetUrl(): 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

ack

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

addMember

  • addMember(userId: string, options: AddGuildMember): Promise<any>
  • Parameters

    • userId: string
    • options: AddGuildMember

    Returns Promise<any>

addMemberRole

  • addMemberRole(userId: string, roleId: string): Promise<any>
  • Parameters

    • userId: string
    • roleId: string

    Returns Promise<any>

beginPrune

  • beginPrune(options?: BeginGuildPrune): Promise<any>
  • Parameters

    • Default value options: BeginGuildPrune = {}

    Returns Promise<any>

createBan

  • createBan(userId: string, options: CreateGuildBan): Promise<any>
  • Parameters

    • userId: string
    • options: CreateGuildBan

    Returns Promise<any>

createChannel

createEmoji

  • createEmoji(options: CreateGuildEmoji): Promise<Emoji>
  • Parameters

    • options: CreateGuildEmoji

    Returns Promise<Emoji>

createIntegration

  • createIntegration(options: CreateGuildIntegration): Promise<any>
  • Parameters

    • options: CreateGuildIntegration

    Returns Promise<any>

createRole

  • createRole(options: CreateGuildRole): Promise<Role>
  • Parameters

    • options: CreateGuildRole

    Returns Promise<Role>

createTemplate

  • createTemplate(options: CreateGuildTemplate): Promise<Template>
  • Parameters

    • options: CreateGuildTemplate

    Returns Promise<Template>

delete

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

deleteChannel

deleteEmoji

  • deleteEmoji(emojiId: string, options?: DeleteGuildEmoji): Promise<any>
  • Parameters

    • emojiId: string
    • Default value options: DeleteGuildEmoji = {}

    Returns Promise<any>

deleteIntegration

  • deleteIntegration(integrationId: string, options?: DeleteGuildIntegration): Promise<any>
  • Parameters

    • integrationId: string
    • Default value options: DeleteGuildIntegration = {}

    Returns Promise<any>

deletePremiumSubscription

  • deletePremiumSubscription(subscriptionId: string): Promise<any>
  • Parameters

    • subscriptionId: string

    Returns Promise<any>

deleteRole

  • deleteRole(roleId: string, options?: DeleteGuildRole): Promise<any>
  • Parameters

    • roleId: string
    • Default value options: DeleteGuildRole = {}

    Returns Promise<any>

deleteTemplate

  • deleteTemplate(templateId: string): Promise<any>
  • Parameters

    • templateId: string

    Returns Promise<any>

difference

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

    • key: string
    • value: any

    Returns [boolean, any]

differences

edit

  • edit(options: EditGuild): Promise<Guild>
  • Parameters

    • options: EditGuild

    Returns Promise<Guild>

editChannel

editChannelPositions

  • editChannelPositions(channels: EditGuildChannels, options?: EditGuildChannelsExtra): Promise<any>
  • Parameters

    • channels: EditGuildChannels
    • Default value options: EditGuildChannelsExtra = {}

    Returns Promise<any>

editEmbed

  • editEmbed(options: EditGuildEmbed): Promise<any>
  • Parameters

    • options: EditGuildEmbed

    Returns Promise<any>

editEmoji

  • editEmoji(emojiId: string, options: EditGuildEmoji): Promise<Emoji>
  • Parameters

    • emojiId: string
    • options: EditGuildEmoji

    Returns Promise<Emoji>

editIntegration

  • editIntegration(integrationId: string, options: EditGuildIntegration): Promise<any>
  • Parameters

    • integrationId: string
    • options: EditGuildIntegration

    Returns Promise<any>

editMember

  • editMember(userId: string, options: EditGuildMember): Promise<any>
  • Parameters

    • userId: string
    • options: EditGuildMember

    Returns Promise<any>

editMfaLevel

  • editMfaLevel(options: EditGuildMfaLevel): Promise<any>
  • Parameters

    • options: EditGuildMfaLevel

    Returns Promise<any>

editNick

  • editNick(nick: string, options?: EditGuildNick): Promise<any>
  • Parameters

    • nick: string
    • Default value options: EditGuildNick = {}

    Returns Promise<any>

editRole

  • editRole(roleId: string, options: EditGuildRole): Promise<Role>
  • Parameters

    • roleId: string
    • options: EditGuildRole

    Returns Promise<Role>

editRolePositions

  • editRolePositions(roles: EditGuildRolePositions, options?: EditGuildRolePositionsExtra): Promise<BaseCollection<string, Role>>
  • Parameters

    • roles: EditGuildRolePositions
    • Default value options: EditGuildRolePositionsExtra = {}

    Returns Promise<BaseCollection<string, Role>>

editVanityUrl

  • editVanityUrl(code: string, options?: EditGuildVanity): Promise<any>
  • Parameters

    • code: string
    • Default value options: EditGuildVanity = {}

    Returns Promise<any>

fetchApplications

  • fetchApplications(channelId?: undefined | string): Promise<any>
  • Parameters

    • Optional channelId: undefined | string

    Returns Promise<any>

fetchAuditLogs

  • fetchAuditLogs(options: FetchGuildAuditLogs): Promise<BaseCollection<string, AuditLog>>
  • Parameters

    • options: FetchGuildAuditLogs

    Returns Promise<BaseCollection<string, AuditLog>>

fetchBans

  • Returns Promise<FetchGuildBans>

fetchChannels

fetchEmbed

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

fetchEmoji

  • fetchEmoji(emojiId: string): Promise<Emoji>
  • Parameters

    • emojiId: string

    Returns Promise<Emoji>

fetchEmojis

  • fetchEmojis(): Promise<BaseCollection<string, Emoji>>
  • Returns Promise<BaseCollection<string, Emoji>>

fetchIntegrations

  • fetchIntegrations(): Promise<BaseCollection<string, Integration>>
  • Returns Promise<BaseCollection<string, Integration>>

fetchInvites

  • fetchInvites(): Promise<BaseCollection<string, Invite>>
  • Returns Promise<BaseCollection<string, Invite>>

fetchMember

  • fetchMember(userId: string): Promise<Member>
  • Parameters

    • userId: string

    Returns Promise<Member>

fetchMembers

  • fetchMembers(options: FetchGuildMembers): Promise<BaseCollection<string, Member>>
  • Parameters

    • options: FetchGuildMembers

    Returns Promise<BaseCollection<string, Member>>

fetchMembersSearch

  • fetchMembersSearch(options: FetchGuildMembersSearch): Promise<BaseCollection<string, Member>>
  • Parameters

    • options: FetchGuildMembersSearch

    Returns Promise<BaseCollection<string, Member>>

fetchPremiumSubscriptions

  • Returns Promise<BaseCollection<string, PremiumSubscription>>

fetchPruneCount

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

fetchRoles

  • fetchRoles(): Promise<BaseCollection<string, Role>>
  • Returns Promise<BaseCollection<string, Role>>

fetchTemplates

  • fetchTemplates(): Promise<BaseCollection<string, Template>>
  • Returns Promise<BaseCollection<string, Template>>

fetchVanityUrl

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

fetchVoiceRegions

  • fetchVoiceRegions(): Promise<BaseCollection<string, VoiceRegion>>
  • Returns Promise<BaseCollection<string, VoiceRegion>>

fetchWebhooks

  • fetchWebhooks(): Promise<BaseCollection<string, Webhook>>
  • Returns Promise<BaseCollection<string, Webhook>>

fetchWidget

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

fetchWidgetJson

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

fetchWidgetPng

  • fetchWidgetPng(options?: FetchGuildWidgetPng): Promise<any>
  • Parameters

    • Default value options: FetchGuildWidgetPng = {}

    Returns Promise<any>

hasFeature

  • hasFeature(feature: string): boolean
  • Parameters

    • feature: string

    Returns boolean

iconUrlFormat

  • iconUrlFormat(format?: null | string, query?: UrlQuery): null | string
  • Parameters

    • Optional format: null | string
    • Optional query: UrlQuery

    Returns null | string

join

  • join(options: JoinGuild): Promise<any>
  • Parameters

    • options: JoinGuild

    Returns Promise<any>

leave

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

merge

mergeValue

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

    • key: string
    • value: any

    Returns void

removeBan

  • removeBan(userId: string, options?: RemoveGuildBan): Promise<any>
  • Parameters

    • userId: string
    • Default value options: RemoveGuildBan = {}

    Returns Promise<any>

removeMember

  • removeMember(userId: string, options?: RemoveGuildMember): Promise<any>
  • Parameters

    • userId: string
    • Default value options: RemoveGuildMember = {}

    Returns Promise<any>

removeMemberRole

  • removeMemberRole(userId: string, roleId: string, options?: RemoveGuildBan): Promise<any>
  • Parameters

    • userId: string
    • roleId: string
    • Default value options: RemoveGuildBan = {}

    Returns Promise<any>

requestMembers

  • requestMembers(options: object): Promise<object>
  • Parameters

    • options: object
      • Optional limit?: undefined | number
      • Optional presences?: undefined | false | true
      • query: string
      • Optional timeout?: undefined | number
      • Optional userIds?: Array<string>

    Returns Promise<object>

search

  • search(options: SearchOptions, retry?: undefined | false | true): Promise<any>
  • Parameters

    • options: SearchOptions
    • Optional retry: undefined | false | true

    Returns Promise<any>

syncIntegration

  • syncIntegration(integrationId: string): Promise<any>
  • Parameters

    • integrationId: string

    Returns Promise<any>

toJSON

  • toJSON(): object
  • Returns object

toString

  • toString(): string
  • Returns string

widgetImageUrlFormat

  • widgetImageUrlFormat(query?: UrlQuery): string
  • Parameters

    Returns string

widgetUrlFormat

  • widgetUrlFormat(options?: RouteWidget): string
  • Parameters

    • Default value options: RouteWidget = {}

    Returns string

Generated using TypeDoc