for coded
diff --git a/src/events:TODO/inviteCreate.ts b/src/events:TODO/inviteCreate.ts
new file mode 100644
index 0000000..596bf58
--- /dev/null
+++ b/src/events:TODO/inviteCreate.ts
@@ -0,0 +1,22 @@
+const {addLog} = require('../scripts/addLogs');
+
+module.exports = {
+ name:'inviteCreate',
+ once:false,
+ async execute(invite) {
+
+ const i = await invite.guild.invites.fetch(invite.code)
+
+ let data = {
+ channel: invite.channel.id,
+ code: invite.code,
+ createdAt: invite.createdTimestamp,
+ expiresAt: invite.expiresTimestamp,
+ createdBy: invite.inviter.id,
+ maxUsage: i.maxUses,
+ maxAge: i.maxAge
+ }
+
+ addLog(invite.guild.id, data)
+ }
+}
\ No newline at end of file