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 91507f6 commit 9e932c9Copy full SHA for 9e932c9
src/commands/Fun/google.ts
@@ -110,7 +110,7 @@ export default class Google extends Command {
110
}>("SELECT uid FROM assistant WHERE uid = $1", [command.author.id])
111
.first()
112
.catch(() => ({ uid: "" }));
113
- if (hasCredentials.uid && hasCredentials.uid != command.author.id)
+ if (hasCredentials?.uid && hasCredentials.uid != command.author.id)
114
return await command.send("GOOGLE_CREDENTIAL_CHECK_FAILED");
115
useDefaultCreds = !hasCredentials;
116
}
0 commit comments