fix: actually check for guildid
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
627d4b24c2
commit
66a63a12e2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
|||
if (n >= 3)
|
||||
break; // only process three previews
|
||||
|
||||
if (r.groups == undefined && r.groups.server_id != message.guildId)
|
||||
if (r.groups == undefined || r.groups.server_id != message.guildId)
|
||||
continue; // do not let the bot leak messages from one server to another
|
||||
|
||||
const channel = await message.guild?.channels.fetch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue