diff --git a/pages/api/v1/bots/servers.ts b/pages/api/v1/bots/servers.ts index 3fb9584..a3546b7 100644 --- a/pages/api/v1/bots/servers.ts +++ b/pages/api/v1/bots/servers.ts @@ -39,7 +39,7 @@ const BotStats = RequestHandler() const botInfo = await get.bot.load(bot) if(!botInfo) return ResponseWrapper(res, { code: 404, message: '존재하지 않는 봇입니다.', version: 1 }) if(botInfo.id !== bot) return ResponseWrapper(res, { code: 403, version: 1 }) - const d = await update.updateServer(botInfo.id, validated.servers) + const d = await update.updateServer(botInfo.id, validated.servers, undefined) if(d===1 || d===2) return ResponseWrapper(res, { code: 403, message: `서버 수를 ${[null, '1만', '100만'][d]} 이상으로 설정하실 수 없습니다. 문의해주세요.`, version: 1 }) get.bot.clear(bot) await getStatsLoggingChannel().send(`[BOT/STATS] <@${botInfo.id}> (${botInfo.id})\n${makeDiscordCodeblock(`${botInfo.servers > validated.servers ? '-' : '+'} ${botInfo.servers} -> ${validated.servers} (${botInfo.servers > validated.servers ? '▼' : '▲'}${Math.abs(validated.servers - botInfo.servers)})`, 'diff')}`, (new MessageEmbed().setDescription(`${botInfo.name} - <@${botInfo.id}> ([${botInfo.id}](${KoreanbotsEndPoints.URL.bot(botInfo.id)}))`)))