hoshii / Exports / Util

Util

A utility class

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Util(client)

Create a new Util

Parameters

NameTypeDescription
clientClientThe client

Defined in

lib/utils/Util.ts:24open in new window

Properties

_client

Private _client: Client

The client

Defined in

lib/utils/Util.ts:18open in new window

Methods

updateChannel

updateChannel<T>(data): T

Update a channel

Type parameters

NameType
Textends AnyChannel = AnyChannel

Parameters

NameTypeDescription
dataRawServerChannelThe channel data

Returns

T

Defined in

lib/utils/Util.ts:33open in new window


updateForumTopic

updateForumTopic(data): ForumTopic<ForumChannel>

Update a forum topic

Parameters

NameTypeDescription
dataRawForumTopicThe forum topic data

Returns

ForumTopic<ForumChannel>

Defined in

lib/utils/Util.ts:56open in new window


updateMember

updateMember(serverID, memberID, member): ServerMember

Update a member

Parameters

NameTypeDescription
serverIDstringThe ID of the server
memberIDstringThe ID of the member
memberRawServerMemberThe raw data of the member

Returns

ServerMember

Defined in

lib/utils/Util.ts:82open in new window


updateServer

updateServer(data): Server

Update a server

Parameters

NameTypeDescription
dataRawServerThe raw data of the server

Returns

Server

Defined in

lib/utils/Util.ts:112open in new window


updateUser

updateUser(data): User

Update a user

Parameters

NameTypeDescription
dataRawUserThe raw data of the user

Returns

User

Defined in

lib/utils/Util.ts:127open in new window

Last Updated:
Contributors: Reinhardt