Util
A utility class
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Util(client
)
Create a new Util
Parameters
Name | Type | Description |
---|---|---|
client | Client | The client |
Defined in
Properties
_client
• Private
_client: Client
The client
Defined in
Methods
updateChannel
▸ updateChannel<T
>(data
): T
Update a channel
Type parameters
Name | Type |
---|---|
T | extends AnyChannel = AnyChannel |
Parameters
Name | Type | Description |
---|---|---|
data | RawServerChannel | The channel data |
Returns
T
Defined in
updateForumTopic
▸ updateForumTopic(data
): ForumTopic
<ForumChannel
>
Update a forum topic
Parameters
Name | Type | Description |
---|---|---|
data | RawForumTopic | The forum topic data |
Returns
Defined in
updateMember
▸ updateMember(serverID
, memberID
, member
): ServerMember
Update a member
Parameters
Name | Type | Description |
---|---|---|
serverID | string | The ID of the server |
memberID | string | The ID of the member |
member | RawServerMember | The raw data of the member |
Returns
Defined in
updateServer
▸ updateServer(data
): Server
Update a server
Parameters
Name | Type | Description |
---|---|---|
data | RawServer | The raw data of the server |
Returns
Defined in
updateUser
▸ updateUser(data
): User
Update a user
Parameters
Name | Type | Description |
---|---|---|
data | RawUser | The raw data of the user |