Skip to content

Commit

Permalink
refactor: destructure more things
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Dec 25, 2022
1 parent 04e2f30 commit 7ed0225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/discord.js/src/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,11 @@ class Guild extends AnonymousGuild {
reason,
}) {
const {
client: { channels, users },
client: { channels, rest, users },
id,
} = this;

const newData = await this.client.rest.patch(Routes.guild(this.id), {
const newData = await rest.patch(Routes.guild(id), {
body: {
name,
verification_level: verificationLevel,
Expand Down

0 comments on commit 7ed0225

Please sign in to comment.