1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Correct the "uses" property, been there since the start of V2 apparently.

This commit is contained in:
toast-ts 2024-01-15 00:03:05 +11:00
parent 9f8976cd07
commit 127dd8ad05

View File

@ -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}))
}
}