mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +00:00
Add typedef for GuildmemberEditData. (#1230)
* Add typedef for GuildmemberEditData. * Farm commits * Make terms consistent.
This commit is contained in:
parent
b6f74c45fe
commit
01d8d32ea9
1 changed files with 11 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue