guildinfo: copypaste moment

This commit is contained in:
Cynthia Foxwell 2024-08-12 16:14:45 -06:00
parent 50d36a650f
commit eedfc2e5bb

View file

@ -81,7 +81,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
clan.game_ids.map(async (id) => {
let game = Games.find((x) => x.id == id);
if (!game) {
game = await hf.bot.requestHandler.request("GET", APIEndpoints.APPLICATION_RPC(snowflake), false);
game = await hf.bot.requestHandler.request("GET", APIEndpoints.APPLICATION_RPC(id), false);
}
return `${game.name} (\`${id}\`)`;