guildinfo: cleanup associated games
This commit is contained in:
parent
ef3495bff1
commit
e582a7472a
1 changed files with 1 additions and 9 deletions
|
@ -88,15 +88,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
game = await hf.bot.requestHandler.request("GET", APIEndpoints.APPLICATION_RPC(id), false);
|
||||
}
|
||||
|
||||
let out = `${game.name} (\`${id}\`)`;
|
||||
|
||||
if (profile.game_activity[id]?.activity_level > 1) {
|
||||
out = `:fire: ${out}`;
|
||||
} else {
|
||||
out = `${Icons.blank} ${out}`;
|
||||
}
|
||||
|
||||
return out;
|
||||
return `${game.name}${profile.game_activity[id]?.activity_level > 1 ? " :fire:" : ""}\n-# \u3000${id}`;
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue