Fix link only mode not checking the message id
All checks were successful
Test / build (push) Successful in 6s

This commit is contained in:
Ethan Lane 2024-10-25 17:38:22 +01:00
parent 6acc5a9a02
commit bfbf386eeb

View file

@ -6,11 +6,7 @@ export default async function LinkOnlyMode(message: Message) {
const gifOnlyMode = await SettingsHelper.GetSetting("channel.linkonly", message.guild.id); const gifOnlyMode = await SettingsHelper.GetSetting("channel.linkonly", message.guild.id);
if (!gifOnlyMode) return; if (gifOnlyMode != message.channel.id) return;
const channel = message.guild.channels.cache.find(x => x.id == gifOnlyMode) || message.guild.channels.fetch(gifOnlyMode);
if (!channel) return;
if (message.content.startsWith("https://") || message.content.startsWith("http://")) return; if (message.content.startsWith("https://") || message.content.startsWith("http://")) return;