🥅 guild is null

This commit is contained in:
Axel Olausson Holtenäs 2022-04-12 22:41:22 +02:00
parent ecb28109a1
commit e3cc352fc2
No known key found for this signature in database
GPG key ID: 9347A5E873995701

View file

@ -25,6 +25,7 @@ export default async (client: Client) => {
guildId: shopRole.guildId,
});
if (guild === null) return;
const userDB = await users.findOne({
userId: shopRole.userId,
guildId: shopRole.guildId,