diff --git a/src/events/inviteCreate.ts b/src/events/inviteCreate.ts index 1aa5a80..7fc7889 100644 --- a/src/events/inviteCreate.ts +++ b/src/events/inviteCreate.ts @@ -3,6 +3,6 @@ import TClient from '../client.js'; export default class InviteCreate { static async run(client:TClient, invite:Discord.Invite){ if (!invite.guild) return; - (await (invite.guild as Discord.Guild).invites.fetch()).forEach(inv=>client.invites.set(inv.code,{uses: inv.code, creator: inv.inviterId, channel: inv.channel.name})) + (await (invite.guild as Discord.Guild).invites.fetch()).forEach(inv=>client.invites.set(inv.code,{uses: inv.uses, creator: inv.inviterId, channel: inv.channel.name})) } }