More trolling
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
This commit is contained in:
parent
3cdc51ced4
commit
f099cc9900
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (channel == undefined || channel == null || !channel.isTextBased()) {
|
if (channel == undefined || channel == null || !channel.isTextBased()) {
|
||||||
|
execResult = re.exec(message.content);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,10 +43,12 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
||||||
if (
|
if (
|
||||||
!channel.parent?.members?.some((user) => user.id == message.author.id)
|
!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
|
continue; // do not reveal a message to a user who can't see it
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!channel.members?.some((user) => user.id == message.author.id)) {
|
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
|
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<void> {
|
||||||
await message.channel.send({ embeds: [builder], components: [row] });
|
await message.channel.send({ embeds: [builder], components: [row] });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
execResult = re.exec(message.content);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue