Skip to content

Commit

Permalink
Update Member.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Nov 15, 2024
1 parent e518791 commit e845b99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/structures/Member.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,9 @@ class Member {

if (reason) body["X-Audit-Log-Reason"] = reason;

body.communication_disabled_until = timeout_until;
body.communication_disabled_until = new Date(
timeout_until * 1000,
).toISOString();

await this.#_client.request.makeRequest(
"patchGuildMember",
Expand Down

0 comments on commit e845b99

Please sign in to comment.