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 { Events, Guild, EmbedBuilder, channelMention } from 'discord.js';
|
||||||
import { prisma } from '@lib/prisma';
|
import { prisma } from '@lib/prisma';
|
||||||
|
import { Guild as GuildPrisma } from '@prisma/client';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: Events.GuildUpdate,
|
name: Events.GuildUpdate,
|
||||||
async execute(oldGuild, newGuild) {
|
async execute(oldGuild: Guild, newGuild: Guild) {
|
||||||
const guildData: Guild = await prisma.guild.findUnique({
|
const guildData: GuildPrisma = await prisma.guild.findUnique({
|
||||||
where: {
|
where: {
|
||||||
id: newGuild.id,
|
id: newGuild.id,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue