From e5264aba3752f91af74cbd172abcecf9c48a0d93 Mon Sep 17 00:00:00 2001 From: vzwGrey Date: Sat, 14 Mar 2020 13:38:51 +0100 Subject: [PATCH] =?UTF-8?q?fix(GuildMemberRolesManager):=20type=20error=20?= =?UTF-8?q?should=20mention=20Role=20an=E2=80=A6=20(#3931)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(GuildMemberRoleManager): type error should mention that Role or Snowflake are fine too * fix(GuildMemberRoleManager): comma instead of 'or' * style: break long line --- src/managers/GuildMemberRoleManager.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/managers/GuildMemberRoleManager.js b/src/managers/GuildMemberRoleManager.js index 847110564..f4f530d30 100644 --- a/src/managers/GuildMemberRoleManager.js +++ b/src/managers/GuildMemberRoleManager.js @@ -90,7 +90,12 @@ class GuildMemberRoleManager { } else { roleOrRoles = this.guild.roles.resolve(roleOrRoles); if (roleOrRoles === null) { - throw new TypeError('INVALID_TYPE', 'roles', 'Array or Collection of Roles or Snowflakes', true); + throw new TypeError( + 'INVALID_TYPE', + 'roles', + 'Role, Snowflake or Array or Collection of Roles or Snowflakes', + true, + ); } await this.client.api.guilds[this.guild.id].members[this.member.id].roles[roleOrRoles.id].put({ reason });