mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-01 16:31:25 +03:00
fix: don't throw errors on every message if a guild isn't configured
This commit is contained in:
@@ -181,6 +181,7 @@ module.exports = class extends Listener {
|
||||
}
|
||||
} else {
|
||||
const settings = await client.prisma.guild.findUnique({ where: { id: message.guild.id } });
|
||||
if (!settings) return;
|
||||
let ticket = await client.prisma.ticket.findUnique({ where: { id: message.channel.id } });
|
||||
|
||||
if (ticket) {
|
||||
|
Reference in New Issue
Block a user