const guildIsBanned = await ctx.db.guildBotBans.findFirst({
where: { guildId: input.guildId },
});
if (guildIsBanned) {
throw new TRPCError({
code: "FORBIDDEN",
message: `Server is banned from using the bot for reason: \`${guildIsBanned.reason}\``,
});
}
const guildIsBanned = await ctx.db.guildBotBans.findFirst({
where: { guildId: input.guildId },
});
if (guildIsBanned) {
throw new TRPCError({
code: "FORBIDDEN",
message: `Server is banned from using the bot for reason: \`${guildIsBanned.reason}\``,
});
}