mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2025-03-01 05:49:40 +11:00

Half of them is untested on development bot so I wouldn't be surprised if I broke it in production.
9 lines
348 B
TypeScript
9 lines
348 B
TypeScript
import Discord from 'discord.js';
|
|
import TClient from '../client.js';
|
|
export default {
|
|
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}))
|
|
}
|
|
}
|