mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
refactor(Actions): remove obsolete user and guild member get actions (#2061)
The UserGetAction was never used. The GuildMemberGetAction was only once used. Easily replaced with a shorter and more comprehensible line. (Also consistent with the rest of the library)
This commit is contained in:
@@ -542,7 +542,7 @@ class Guild extends Base {
|
||||
}
|
||||
}
|
||||
return this.client.api.guilds(this.id).members(user.id).put({ data: options })
|
||||
.then(data => this.client.actions.GuildMemberGet.handle(this, data).member);
|
||||
.then(data => this.members.create(data));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user