mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 20:30:58 -05:00
Correct the "uses" property, been there since the start of V2 apparently.
This commit is contained in:
parent
7e133ab018
commit
84c803671b
@ -3,6 +3,6 @@ import TClient from '../client.js';
|
|||||||
export default class InviteCreate {
|
export default class InviteCreate {
|
||||||
static async run(client:TClient, invite:Discord.Invite){
|
static async run(client:TClient, invite:Discord.Invite){
|
||||||
if (!invite.guild) return;
|
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}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user