pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 1 | const {addLog} = require('../scripts/addLogs'); |
2 | |||||
3 | module.exports = { | ||||
4 | name:'guildScheduledEventUserRemove', | ||||
5 | once:false, | ||||
6 | async execute(event, member) { | ||||
7 | let data = { | ||||
8 | event: { | ||||
9 | id: event.id, | ||||
10 | name: event.name, | ||||
11 | }, | ||||
12 | user: { | ||||
13 | id: member.id, | ||||
14 | username: member.username, | ||||
15 | leftEventAt: Date.now() | ||||
16 | } | ||||
17 | } | ||||
18 | addLog(event.guild.id, data); | ||||
19 | } | ||||
20 | } |