mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Add Guild.fetchMember
This commit is contained in:
13
src/client/actions/GuildMemberGet.js
Normal file
13
src/client/actions/GuildMemberGet.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const Action = require('./Action');
|
||||
|
||||
class GuildMemberGetAction extends Action {
|
||||
handle(guild, data) {
|
||||
const client = this.client;
|
||||
const member = client.dataManager.newGuildMember(guild, data);
|
||||
return {
|
||||
member,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = GuildMemberGetAction;
|
||||
Reference in New Issue
Block a user