Skip to content

Commit

Permalink
fix(Guild/GuildChannel): methods reason arg usage (#5419)
Browse files Browse the repository at this point in the history
  • Loading branch information
BannerBomb committed Mar 28, 2021
1 parent 4099c28 commit 8411b9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/structures/Guild.js
Expand Up @@ -1163,7 +1163,7 @@ class Guild extends Base {
* .catch(console.error);
*/
async setIcon(icon, reason) {
return this.edit({ icon: await DataResolver.resolveImage(icon), reason });
return this.edit({ icon: await DataResolver.resolveImage(icon) }, reason);
}

/**
Expand Down Expand Up @@ -1193,7 +1193,7 @@ class Guild extends Base {
* .catch(console.error);
*/
async setSplash(splash, reason) {
return this.edit({ splash: await DataResolver.resolveImage(splash), reason });
return this.edit({ splash: await DataResolver.resolveImage(splash) }, reason);
}

/**
Expand All @@ -1208,7 +1208,7 @@ class Guild extends Base {
* .catch(console.error);
*/
async setDiscoverySplash(discoverySplash, reason) {
return this.edit({ discoverySplash: await DataResolver.resolveImage(discoverySplash), reason });
return this.edit({ discoverySplash: await DataResolver.resolveImage(discoverySplash) }, reason);
}

/**
Expand All @@ -1222,7 +1222,7 @@ class Guild extends Base {
* .catch(console.error);
*/
async setBanner(banner, reason) {
return this.edit({ banner: await DataResolver.resolveImage(banner), reason });
return this.edit({ banner: await DataResolver.resolveImage(banner) }, reason);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/structures/GuildChannel.js
Expand Up @@ -209,7 +209,7 @@ class GuildChannel extends Channel {
if (!Array.isArray(overwrites) && !(overwrites instanceof Collection)) {
throw new TypeError('INVALID_TYPE', 'overwrites', 'Array or Collection of Permission Overwrites', true);
}
await this.edit({ permissionOverwrites: overwrites, reason });
await this.edit({ permissionOverwrites: overwrites }, reason);
return this;
}

Expand Down

0 comments on commit 8411b9e

Please sign in to comment.