File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 | t w i t t e r ) \. c o m / 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 } ,
You can’t perform that action at this time.
0 commit comments