3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

enum moment

This commit is contained in:
metal 2021-09-06 12:57:59 +00:00 committed by GitHub
parent 3b14d83065
commit f24587860c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ export const StartThreadAction = automodAction({
const guild = pluginData.guild;
const archiveSet = actionConfig.auto_archive
? Math.ceil(Math.max(convertDelayStringToMS(actionConfig.auto_archive) ?? 0, 0) / MINUTES)
: 1400;
: ThreadAutoArchiveDuration.OneDay;
let autoArchive: ThreadAutoArchiveDuration;
if (archiveSet === ThreadAutoArchiveDuration.OneDay) {
autoArchive = ThreadAutoArchiveDuration.OneDay;