Markus-Rost il y a 4 ans
Parent
commit
58bfa9ed8b
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 2 2
      bot.js
  2. 1 1
      dashboard/rcscript.js

+ 2 - 2
bot.js

@@ -381,12 +381,12 @@ function removeSettings(guild) {
 	if ( client.guilds.cache.has(guild) ) return;
 	db.run( 'DELETE FROM discord WHERE main = ?', [guild], function (dberror) {
 		if ( dberror ) {
-			console.log( '- ' + guild.id + ': Error while removing the settings: ' + dberror );
+			console.log( '- ' + guild + ': Error while removing the settings: ' + dberror );
 			return dberror;
 		}
 		if ( patreons.hasOwnProperty(guild) ) client.shard.broadcastEval( `delete global.patreons['${guild}']` );
 		if ( voice.hasOwnProperty(guild) ) delete voice[guild];
-		if ( this.changes ) console.log( '- ' + guild.id + ': Settings successfully removed.' );
+		if ( this.changes ) console.log( '- ' + guild + ': Settings successfully removed.' );
 	} );
 }
 

+ 1 - 1
dashboard/rcscript.js

@@ -100,7 +100,7 @@ function createForm($, header, dashboardLang, settings, guildChannels, allWikis)
 			} )
 		);
 		if ( !settings.channel ) {
-			if ( !channel.find('#wb-settings-channel').children('option').length ) {
+			if ( !channel.find('#wb-settings-channel').children().length ) {
 				createNotice($, 'missingperm', dashboardLang, ['Manage Webhooks']);
 			}
 			channel.find('#wb-settings-channel').prepend(