From 4b5a8ee4294da59b6e7f11a76f1094b160ea9a11 Mon Sep 17 00:00:00 2001 From: iiFDCT Date: Thu, 30 Sep 2021 01:26:33 +0100 Subject: [PATCH] Add options to functions --- lib/Client.js | 6 ++++++ lib/structures/Guild.js | 4 ++++ lib/structures/Role.js | 2 ++ 3 files changed, 12 insertions(+) diff --git a/lib/Client.js b/lib/Client.js index 3b8593b25..800f57b4a 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -660,9 +660,11 @@ class Client extends EventEmitter { * @arg {Object | Role} [options] An object or Role containing the properties to set * @arg {Number} [options.color] The hex color of the role, in number form (ex: 0x3d15b3 or 4040115) * @arg {Boolean} [options.hoist] Whether to hoist the role in the user list or not + * @arg {String} [options.icon] The role icon as a base64 data URI * @arg {Boolean} [options.mentionable] Whether the role is mentionable or not * @arg {String} [options.name] The name of the role * @arg {BigInt | Number | String | Permission} [options.permissions] The role permissions + * @arg {String} [options.unicodeEmoji] The role's unicode emoji * @arg {String} [reason] The reason to be displayed in audit logs * @returns {Promise} */ @@ -675,7 +677,9 @@ class Client extends EventEmitter { permissions: options.permissions, color: options.color, hoist: options.hoist, + icon: options.icon, mentionable: options.mentionable, + unicode_emoji: options.unicodeEmoji, reason: reason }).then((role) => { const guild = this.guilds.get(guildID); @@ -1311,9 +1315,11 @@ class Client extends EventEmitter { * @arg {Object} options The properties to edit * @arg {Number} [options.color] The hex color of the role, in number form (ex: 0x3da5b3 or 4040115) * @arg {Boolean} [options.hoist] Whether to hoist the role in the user list or not + * @arg {String} [options.icon] The role icon as a base64 data URI * @arg {Boolean} [options.mentionable] Whether the role is mentionable or not * @arg {String} [options.name] The name of the role * @arg {BigInt | Number | String | Permission} [options.permissions] The role permissions + * @arg {String} [options.unicodeEmoji] The role's unicode emoji * @arg {String} [reason] The reason to be displayed in audit logs * @returns {Promise} */ diff --git a/lib/structures/Guild.js b/lib/structures/Guild.js index a44b6e357..2a7577bf6 100644 --- a/lib/structures/Guild.js +++ b/lib/structures/Guild.js @@ -376,9 +376,11 @@ class Guild extends Base { * @arg {Object | Role} [options] An object or Role containing the properties to set * @arg {Number} [options.color] The hex color of the role, in number form (ex: 0x3d15b3 or 4040115) * @arg {Boolean} [options.hoist] Whether to hoist the role in the user list or not + * @arg {String} [options.icon] The role icon as a base64 data URI * @arg {Boolean} [options.mentionable] Whether the role is mentionable or not * @arg {String} [options.name] The name of the role * @arg {BigInt | Number | String | Permission} [options.permissions] The role permissions + * @arg {String} [options.unicodeEmoji] The role's unicode emoji * @arg {String} [reason] The reason to be displayed in audit logs * @returns {Promise} */ @@ -587,9 +589,11 @@ class Guild extends Base { * @arg {Object} options The properties to edit * @arg {Number} [options.color] The hex color of the role, in number form (ex: 0x3da5b3 or 4040115) * @arg {Boolean} [options.hoist] Whether to hoist the role in the user list or not + * @arg {String} [options.icon] The role icon as a base64 data URI * @arg {Boolean} [options.mentionable] Whether the role is mentionable or not * @arg {String} [options.name] The name of the role * @arg {BigInt | Number | String | Permission} [options.permissions] The role permissions + * @arg {String} [options.unicodeEmoji] The role's unicode emoji * @arg {String} [reason] The reason to be displayed in audit logs * @returns {Promise} */ diff --git a/lib/structures/Role.js b/lib/structures/Role.js index 0302c04c6..decc7be46 100644 --- a/lib/structures/Role.js +++ b/lib/structures/Role.js @@ -95,9 +95,11 @@ class Role extends Base { * @arg {Object} options The properties to edit * @arg {Number} [options.color] The hex color of the role, in number form (ex: 0x3da5b3 or 4040115) * @arg {Boolean} [options.hoist] Whether to hoist the role in the user list or not + * @arg {String} [options.icon] The role icon as a base64 data URI * @arg {Boolean} [options.mentionable] Whether the role is mentionable or not * @arg {String} [options.name] The name of the role * @arg {BigInt | Number} [options.permissions] The role permissions number + * @arg {String?} unicodeEmoji Unicode emoji for the role * @arg {String} [reason] The reason to be displayed in audit logs * @returns {Promise} */