Skip to content

Commit

Permalink
test: add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
skinmaker1345 committed Oct 19, 2024
1 parent 05d5c12 commit fb5ae97
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ async function getBot(id: string, topLevel = true): Promise<Bot> {
res.avatar = discordBot.avatar
res.name = name
res.category = JSON.parse(res.category)
res.owners = JSON.parse(res.owners)
try {
res.owners = JSON.parse(res.owners)
} catch (e) {
console.error(e)
console.log(res.owners)
res.owners = []
}


if (discordBot.flags.bitfield & UserFlags.BotHTTPInteractions) {
res.status = 'online'
Expand Down

0 comments on commit fb5ae97

Please sign in to comment.