GuildMember is a user as a member of one server: the same person has one User, and one GuildMember per server they are in. You get one as the member of a command used in a server, with the events about members and messages, and from guild.members or guild.fetchMember().
Properties
The voice channel the member is in;
null when they are in none. The bot knows it when Discord sends it voice states: in a project with a file that joins a voice channel or listens to a voice event.What the member can do in the server (channels may change it: see
permissionsIn). See Permissions.Helpers
These read what the bot remembers: they never send a request.permissionsIn()
avatarURL()
isHigherThan()
hasRole()
toString()
<@id>: mentions the member when put in a message.
toJSON()
Actions
edit()
setNick()
null removes it.
addRole()
removeRole()
timeout()
duration is how long, in milliseconds (28 days at most).
removeTimeout()
kick()
ban()
send()
Types
BanOptions
Whatban() takes, on a member or on a server. Every field can be left out.
Also deletes the messages the user sent in the last seconds given: from 0 (the default, nothing) to 604800 (7 days).
MemberEditOptions
Whatedit() takes. Every field can be left out: only what you pass changes.
Moves the member to another voice channel;
null disconnects them.