瀏覽代碼

fix /verify again

Markus-Rost 4 年之前
父節點
當前提交
5afeb8614e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dashboard/slash.js

+ 1 - 1
dashboard/slash.js

@@ -126,7 +126,7 @@ function dashboard_slash(res, $, guild, args, dashboardLang) {
 					$('.channel#slash').addClass('selected');
 					return;
 				}
-				else if ( slashCommand.name === 'verify' ) return db.query( 'SELECT 1 FROM verification WHERE guild = $1 LIMIT 1', [guild] ).then( ({rows}) => {
+				else if ( slashCommand.name === 'verify' ) return db.query( 'SELECT 1 FROM verification WHERE guild = $1 LIMIT 1', [guild.id] ).then( ({rows}) => {
 					if ( rows.length ) {
 						$('<p>').html(dashboardLang.get('slash.desc', true, $('<code>').text(guild.name))).appendTo('#text .description');
 						$(`.channel#channel-${slashCommand.id}`).addClass('selected');