Compare commits
No commits in common. "4ec730fed0cb7f6b5abfd169ea292f3245570a99" and "5885d6601afdd36a2b6eae9bc1bb506c85345414" have entirely different histories.
4ec730fed0
...
5885d6601a
2 changed files with 3 additions and 5 deletions
|
@ -77,9 +77,8 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
if (clan) {
|
||||
const images = [];
|
||||
|
||||
const game_ids = clan.game_ids ?? clan.game_application_ids ?? [];
|
||||
const games = await Promise.all(
|
||||
game_ids
|
||||
clan.game_ids
|
||||
.sort((a, b) => (clan.game_activity[b]?.activity_score ?? 0) - (clan.game_activity[a]?.activity_score ?? 0))
|
||||
.map(async (id) => {
|
||||
let game = Games.find((x) => x.id == id);
|
||||
|
@ -166,7 +165,6 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
inline: true,
|
||||
},
|
||||
].filter((x) => !!x),
|
||||
thumbnail: !_guild ? {url: CDNEndpoints.GUILD_ICON(clan.id, clan.icon_hash)} : null,
|
||||
footer: !_guild ? {text: "Fetched from clan"} : null,
|
||||
};
|
||||
|
||||
|
@ -195,7 +193,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
|
|||
}
|
||||
|
||||
if (!_guild) {
|
||||
if (clanEmbed != null) {
|
||||
if (clanEmbed) {
|
||||
return {embeds: [clanEmbed]};
|
||||
} else {
|
||||
try {
|
||||
|
|
|
@ -9,7 +9,7 @@ function formatTime(number) {
|
|||
|
||||
return (
|
||||
(days !== 0 ? `${days.toString().padStart(2, "0")}:` : "") +
|
||||
(days !== 0 || hours !== 0 ? `${hours.toString().padStart(2, "0")}:` : "") +
|
||||
(hours !== 0 ? `${hours.toString().padStart(2, "0")}:` : "") +
|
||||
`${minutes.toString().padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue