hoshii / Exports / ServerChannel

ServerChannel

Represents a base item

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ServerChannel(data, client)

Create a new ServerChannel

Parameters

NameTypeDescription
dataRawServerChannelThe raw data of the server channel
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/ServerChannel.ts:115open in new window

Properties

archivedAt

archivedAt: Date

The date the server channel was archived at

Defined in

lib/structures/ServerChannel.ts:48open in new window


archivedBy

archivedBy: string

The ID of the user that archived the server channel

Defined in

lib/structures/ServerChannel.ts:53open in new window


categoryID

categoryID: string

The ID of the category the server channel is in

Defined in

lib/structures/ServerChannel.ts:58open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


createdAt

createdAt: Date

The date the server channel was created at

Defined in

lib/structures/ServerChannel.ts:63open in new window


createdBy

createdBy: string

The ID of the user that created the server channel

Defined in

lib/structures/ServerChannel.ts:68open in new window


groupID

groupID: string

The ID of the group the server channel is in

Defined in

lib/structures/ServerChannel.ts:73open in new window


id

id: string

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


isPublic

isPublic: boolean

Whether the server channel is public

Defined in

lib/structures/ServerChannel.ts:78open in new window


name

name: string

The name of the server channel

Defined in

lib/structures/ServerChannel.ts:83open in new window


parentID

parentID: string

The ID of the parent the server channel is in

Defined in

lib/structures/ServerChannel.ts:88open in new window


serverID

serverID: string

The ID of the server the server channel is in

Defined in

lib/structures/ServerChannel.ts:93open in new window


topic

topic: string

The topic of the server channel

Defined in

lib/structures/ServerChannel.ts:98open in new window


type

type: ServerChannelCategories

The type of the server channel

Defined in

lib/structures/ServerChannel.ts:103open in new window


updatedAt

updatedAt: Date

The date the server channel was updated at

Defined in

lib/structures/ServerChannel.ts:108open in new window

Methods

delete

delete(): Promise<void>

Deletes the server channel

Returns

Promise<void>

Defined in

lib/structures/ServerChannel.ts:139open in new window


edit

edit(options): Promise<ServerChannel>

Edits the server channel

Parameters

NameTypeDescription
optionsServerChannelEditOptionsThe options to edit the server channel with

Returns

Promise<ServerChannel>

Defined in

lib/structures/ServerChannel.ts:149open in new window


toJSON

toJSON(): ServerChannelData

Returns the JSON representation of the item

Returns

ServerChannelData

Overrides

Base.toJSON

Defined in

lib/structures/ServerChannel.ts:153open in new window


update

Protected update(data): void

Parameters

NameType
dataRawServerChannel

Returns

void

Overrides

Base.update

Defined in

lib/structures/ServerChannel.ts:172open in new window

Last Updated:
Contributors: Reinhardt