blob: 489dd2fa2999e6fe9d4293dd023db8107d1abec9 [file] [log] [blame]
const {addLog} = require('../scripts/addLogs');
module.exports = {
name:'guildScheduledEventCreate',
once:false,
async execute(event) {
let data = {
id: event.id,
name: event.name,
description: event.description,
channel: event.channel.id,
time: {
start: event.scheduledStartTimestamp,
end: event.scheduledEndTimestamp
},
date: event.date,
createdBy: event.creator.id,
createdAt: event.createdTimestamp,
privacyLevel: event.privacyLevel
}
addLog(event.guild.id, data);
}
}