We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b0863 commit 98aa764Copy full SHA for 98aa764
utils/Query.ts
@@ -76,7 +76,10 @@ async function getBot(id: string, topLevel = true): Promise<Bot> {
76
77
if (res) {
78
const discordBot = await get.discord.user.load(res.id)
79
- if (!discordBot || Number(discordBot.discriminator) === 0) {
+ if(!discordBot) {
80
+ return null
81
+ }
82
+ if (Number(discordBot.discriminator) === 0) {
83
knex('bots')
84
.update({ state: 'deleted' })
85
.where({ id })
0 commit comments