pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame^] | 1 | const {addLog} = require('../scripts/addLogs'); |
| 2 | module.exports = { |
| 3 | name:'threadCreate', |
| 4 | once:false, |
| 5 | async execute(thread) { |
| 6 | |
| 7 | let data = { |
| 8 | autoArchiveDuration: thread.autoArchiveDuration, |
| 9 | id: thread.id, |
| 10 | locked: thread.locked, |
| 11 | name: thread.name, |
| 12 | parentChannel: thread.parent.id, |
| 13 | slowmode: thread.rateLimitPerUser, |
| 14 | type: thread.type, |
| 15 | createdAt: thread.createdTimestamp, |
| 16 | createdBy: thread.ownerId |
| 17 | } |
| 18 | |
| 19 | addLog(thread.guild.id, data); |
| 20 | |
| 21 | } |
| 22 | } |