mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
fix(GuildMemberRoleManager): typo (#6335)
This commit is contained in:
committed by
GitHub
parent
d14a6bfe1d
commit
d87299ba20
@@ -138,7 +138,7 @@ class GuildMemberRoleManager extends DataManager {
|
|||||||
} else {
|
} else {
|
||||||
roleOrRoles = this.guild.roles.resolveId(roleOrRoles);
|
roleOrRoles = this.guild.roles.resolveId(roleOrRoles);
|
||||||
if (roleOrRoles === null) {
|
if (roleOrRoles === null) {
|
||||||
throw new TypeError('INVALID_TYPE', 'roles', 'Role, Snwoflake or Array or Collection of Roles or Snowflakes');
|
throw new TypeError('INVALID_TYPE', 'roles', 'Role, Snowflake or Array or Collection of Roles or Snowflakes');
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.client.api.guilds[this.guild.id].members[this.member.id].roles[roleOrRoles].delete({ reason });
|
await this.client.api.guilds[this.guild.id].members[this.member.id].roles[roleOrRoles].delete({ reason });
|
||||||
|
|||||||
Reference in New Issue
Block a user