@@ -21,7 +21,7 @@ function verify(lang, channel, member, username, wiki, rows, old_username = '')
content: '', embed,
reaction: ''
};
- return got.get( wiki + 'api.php?action=query&meta=siteinfo&siprop=general&list=users&usprop=blockinfo|groups|editcount|registration&ususers=' + encodeURIComponent( username ) + '&format=json' ).then( response => {
+ return got.get( wiki + 'api.php?action=query&meta=siteinfo&siprop=general&list=users&usprop=blockinfo|groups|editcount|registration|gender&ususers=' + encodeURIComponent( username ) + '&format=json' ).then( response => {
var body = response.body;
if ( body && body.warnings ) log_warn(body.warnings);
if ( response.statusCode !== 200 || body?.batchcomplete === undefined || !body?.query?.users ) {
@@ -94,7 +94,7 @@ function slash_verify(interaction, lang, wiki, channel) {
else message.content = reply + lang.get('verify.error_reply');
message.embeds = [];
}
- return sendMessage(interaction, message, channel);
+ return sendMessage(interaction, message);
}, error => {
console.log( '- Error during the verifications: ' + error );
return sendMessage(interaction, {
@@ -438,7 +438,7 @@ function allowDelete(msg, author) {
* @param {Object} interaction - The interaction.
* @param {Object} message - The message.
* @param {String} message.content - The message content.
- * @param {{parse: String[], roles?: String[]}} message.allowed_mentions - The allowed mentions.
+ * @param {{parse: String[], roles?: String[], users?: String[]}} message.allowed_mentions - The allowed mentions.
* @param {import('discord.js').TextChannel} [channel] - The channel for the interaction.
*/
function sendMessage(interaction, message, channel) {