mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Add typedef for GuildmemberEditData. (#1230)
* Add typedef for GuildmemberEditData. * Farm commits * Make terms consistent.
This commit is contained in:
committed by
Schuyler Cebulskie
parent
b6f74c45fe
commit
01d8d32ea9
@@ -284,9 +284,19 @@ class GuildMember {
|
||||
return permissions.filter(p => !this.hasPermission(p, explicit));
|
||||
}
|
||||
|
||||
/**
|
||||
* The data for editing a guild member
|
||||
* @typedef {Object} GuildMemberEditData
|
||||
* @property {string} [nick] The nickname to set for the member
|
||||
* @property {Collection<Snowflake, Role>|Role[]|Snowflake[]} [roles] The roles or role IDs to apply
|
||||
* @property {boolean} [mute] Whether or not the member should be muted
|
||||
* @property {boolean} [deaf] Whether or not the member should be deafened
|
||||
* @property {ChannelResolvable} [channel] Channel to move member to (if they are connected to voice)
|
||||
*/
|
||||
|
||||
/**
|
||||
* Edit a guild member
|
||||
* @param {GuildmemberEditData} data The data to edit the member with
|
||||
* @param {GuildMemberEditData} data The data to edit the member with
|
||||
* @returns {Promise<GuildMember>}
|
||||
*/
|
||||
edit(data) {
|
||||
|
||||
Reference in New Issue
Block a user