pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame^] | 1 | const {addLog} = require('../scripts/addLogs'); |
| 2 | |
| 3 | module.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 | } |