fix(events/client): Guild -> GuildPrima to not confuse w/ discord type
This commit is contained in:
parent
022f629921
commit
8c11f466f7
1 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import { Events, Guild, EmbedBuilder, channelMention } from 'discord.js';
|
||||
import { prisma } from '@lib/prisma';
|
||||
import { Guild as GuildPrisma } from '@prisma/client';
|
||||
|
||||
export default {
|
||||
name: Events.GuildUpdate,
|
||||
async execute(oldGuild, newGuild) {
|
||||
const guildData: Guild = await prisma.guild.findUnique({
|
||||
async execute(oldGuild: Guild, newGuild: Guild) {
|
||||
const guildData: GuildPrisma = await prisma.guild.findUnique({
|
||||
where: {
|
||||
id: newGuild.id,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue