mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor(*): make typedefs for all options params (#5785)
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com> Co-authored-by: Antonio Román <kyradiscord@gmail.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
@@ -323,11 +323,16 @@ class Role extends Base {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the position of the role.
|
||||
* @param {number} position The position of the role
|
||||
* @param {Object} [options] Options for setting position
|
||||
* @param {boolean} [options.relative=false] Change the position relative to its current value
|
||||
* @param {string} [options.reason] Reason for changing the position
|
||||
* Options used to set position of a role.
|
||||
* @typedef {Object} SetRolePositionOptions
|
||||
* @property {boolean} [relative=false] Whether to change the position relative to its current value or not
|
||||
* @property {string} [reason] The reason for changing the position
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sets the new position of the role.
|
||||
* @param {number} position The new position for the role
|
||||
* @param {SetRolePositionOptions} [options] Options for setting the position
|
||||
* @returns {Promise<Role>}
|
||||
* @example
|
||||
* // Set the position of the role
|
||||
|
||||
Reference in New Issue
Block a user