Skip to content

feat: hydrate slowmode into channels and add the new permission#151

Open
Arsabutispik wants to merge 2 commits intostoatchat:mainfrom
Arsabutispik:slowmode
Open

feat: hydrate slowmode into channels and add the new permission#151
Arsabutispik wants to merge 2 commits intostoatchat:mainfrom
Arsabutispik:slowmode

Conversation

@Arsabutispik
Copy link
Copy Markdown
Member

Closes #150

Signed-off-by: ispik <ispik@ispik.dev>
Comment thread src/classes/Channel.ts
* @returns Updated channel data
*/
async setSlowmode(slowmode: number): Promise<APIChannel> {
return await this.#collection.client.api.patch(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this update the underlying object as well? That way the client can see that the channel has slowmode after it is set?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tested it I remember the values getting updated immediately so it might not be needed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hydrate slowmode into channels

2 participants