From f099cc9900cb8a1a4a968577afb77c71fa67215c Mon Sep 17 00:00:00 2001 From: PandaNinjas Date: Sun, 12 Feb 2023 18:05:50 -0800 Subject: [PATCH] More trolling Signed-off-by: PandaNinjas --- src/utils/resolveMessage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/resolveMessage.ts b/src/utils/resolveMessage.ts index 67be077..e4e4531 100644 --- a/src/utils/resolveMessage.ts +++ b/src/utils/resolveMessage.ts @@ -35,6 +35,7 @@ export async function expandDiscordLink(message: Message): Promise { ); if (channel == undefined || channel == null || !channel.isTextBased()) { + execResult = re.exec(message.content); continue; } @@ -42,10 +43,12 @@ export async function expandDiscordLink(message: Message): Promise { if ( !channel.parent?.members?.some((user) => user.id == message.author.id) ) { + execResult = re.exec(message.content); continue; // do not reveal a message to a user who can't see it } } else { if (!channel.members?.some((user) => user.id == message.author.id)) { + execResult = re.exec(message.content); continue; // do not reveal a message to a user who can't see it } } @@ -90,6 +93,7 @@ export async function expandDiscordLink(message: Message): Promise { await message.channel.send({ embeds: [builder], components: [row] }); } catch (e) { console.error(e); + execResult = re.exec(message.content); continue; }