Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildChannel

Hierarchy

Index

Constructors

constructor

Properties

client

client: Client

createdAt

createdAt: number

guild

guild: Guild

id

id: string

mention

mention: string

name

name: string

nsfw

nsfw: boolean

parentID

parentID: null | string

permissionOverwrites

permissionOverwrites: Collection<PermissionOverwrite>

position

position: number

type

type: 0 | 13 | 2 | 4 | 5 | 6

Methods

delete

  • delete(reason?: string): Promise<void>
  • Parameters

    • Optional reason: string

    Returns Promise<void>

deletePermission

  • deletePermission(overwriteID: string, reason?: string): Promise<void>
  • Parameters

    • overwriteID: string
    • Optional reason: string

    Returns Promise<void>

edit

  • edit(options: Pick<EditChannelOptions, "bitrate" | "nsfw" | "parentID" | "rateLimitPerUser" | "topic" | "userLimit" | "name" | "rtcRegion" | "videoQualityMode">, reason?: string): Promise<GuildChannel>
  • Parameters

    • options: Pick<EditChannelOptions, "bitrate" | "nsfw" | "parentID" | "rateLimitPerUser" | "topic" | "userLimit" | "name" | "rtcRegion" | "videoQualityMode">
    • Optional reason: string

    Returns Promise<GuildChannel>

editPermission

  • Parameters

    • overwriteID: string
    • allow: number | bigint
    • deny: number | bigint
    • type: PermissionType
    • Optional reason: string

    Returns Promise<PermissionOverwrite>

editPosition

  • Parameters

    Returns Promise<void>

getInvites

  • Returns Promise<Invite<"withMetadata", InviteChannel>[]>

inspect

permissionsOf

  • Parameters

    Returns Permission

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Static from

Static getCreatedAt

  • getCreatedAt(id: string): number
  • Parameters

    • id: string

    Returns number

Generated using TypeDoc