|
@@ -27,6 +27,10 @@ export class FileOnlyChannelChecker {
|
|
|
|
|
|
msg.delete();
|
|
msg.delete();
|
|
|
|
|
|
|
|
+ // Non-default system message (e.g. pin or thread create) => there is no one to warn, so just remove it to keep the channel clean
|
|
|
|
+ if (msg.type != "DEFAULT")
|
|
|
|
+ return;
|
|
|
|
+
|
|
const ch = msg.guild?.channels.resolve(entry.warningMessageChannelId);
|
|
const ch = msg.guild?.channels.resolve(entry.warningMessageChannelId);
|
|
|
|
|
|
if(ch instanceof TextChannel)
|
|
if(ch instanceof TextChannel)
|