Skip to content

Commit 2713578

Browse files
authored
remove embed suppression due to proxy issues (#517)
1 parent 6077c0c commit 2713578

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/features/x-cancel-generator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ const xCancelGenerator: ChannelHandlers = {
1717
if (!match || msg.author.bot) return; // Ignore bots to prevent loops
1818
const isThreadChannel = THREAD_CHANNELS.includes(msg.channel.id);
1919
if (!isThreadChannel) {
20-
msg.suppressEmbeds(true);
20+
// The below line will suppress the original message embed (if ever required again in future)
21+
// msg.suppressEmbeds(true);
2122
const [url] = match;
2223
const alternativeUrl = url.replace(/(x|twitter)\.com/i, "xcancel.com");
24+
// Including the < brackets > around alternativeLink is recognized markdown to suppress an embed
2325
await msg.channel.send(
24-
`[Converted to \`xcancel.com\` for members with no \`x\` account](${alternativeUrl})`,
26+
`[Converted to \`xcancel.com\` for members with no \`x\` account](<${alternativeUrl}>)`,
2527
);
2628
}
2729
},

0 commit comments

Comments
 (0)