Add bypass to deletion for main guild
Some checks failed
ptero-push / build (push) Has been cancelled
Some checks failed
ptero-push / build (push) Has been cancelled
This commit is contained in:
parent
bd275403e9
commit
e02faaab18
1
index.js
1
index.js
|
@ -522,6 +522,7 @@ xmpp.on("stanza", (stanza) => {
|
|||
}).catch((err) => {
|
||||
console.log(`${colors.red("[ERROR]")} Failed to send message to ${channel.guild.ownerId}`);
|
||||
}).then(() => {
|
||||
if (channel.guildId == config.discord.mainGuild) return;
|
||||
db.run(`DELETE FROM channels WHERE channelid = ? AND iemchannel = ?`, [channel.id, fromChannel], (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
|
|
Loading…
Reference in a new issue