feat: timeout functionality (#173)

Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
İspik
2026-07-25 05:23:50 +03:00
committed by GitHub
parent 7fef0567c7
commit 6fbb5ea162
+15
View File
@@ -260,4 +260,19 @@ export class ServerMember {
async kick(): Promise<void> {
this.server?.kickUser(this);
}
/**
* Timeout this member until the given date
* @param date ISO8601 timestamp to time out until
*/
async setTimeout(date: string): Promise<void> {
await this.edit({ timeout: date });
}
/**
* Remove this member's timeout
*/
async removeTimeout(): Promise<void> {
await this.edit({ remove: ["Timeout"] });
}
}