浏览代码

minor fixes

Markus-Rost 4 年之前
父节点
当前提交
0c0114ab5e
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      functions/verify.js
  2. 1 1
      interactions/verify.js
  3. 1 1
      util/functions.js

+ 1 - 1
functions/verify.js

@@ -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 ) {

+ 1 - 1
interactions/verify.js

@@ -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, {

+ 1 - 1
util/functions.js

@@ -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) {