blob: 489dd2fa2999e6fe9d4293dd023db8107d1abec9 [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001const {addLog} = require('../scripts/addLogs');
2
3module.exports = {
4 name:'guildScheduledEventCreate',
5 once:false,
6 async execute(event) {
7 let data = {
8 id: event.id,
9 name: event.name,
10 description: event.description,
11 channel: event.channel.id,
12 time: {
13 start: event.scheduledStartTimestamp,
14 end: event.scheduledEndTimestamp
15 },
16 date: event.date,
17 createdBy: event.creator.id,
18 createdAt: event.createdTimestamp,
19 privacyLevel: event.privacyLevel
20 }
21
22 addLog(event.guild.id, data);
23 }
24}