blob: 63c29a4445d1f2c07009c91a61cfd5363c5ef7ec [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001const {addLog} = require('../scripts/addLogs');
2module.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}