Fix link only mode not checking the message id
All checks were successful
Test / build (push) Successful in 6s
All checks were successful
Test / build (push) Successful in 6s
This commit is contained in:
parent
6acc5a9a02
commit
bfbf386eeb
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue