0
0
Fork 0

refactor the jump link production in order to have it use the link when we aren't creating a thread.

This commit is contained in:
Oliver-Akins 2021-08-28 23:47:28 -06:00
parent d4100d0adc
commit fb0bdc779e

View file

@ -65,7 +65,16 @@ export default {
// Add link if we know what channel the message was posted in // Add link if we know what channel the message was posted in
let use_jump_link = config.guilds[gID].include_jump_link_for_threads ?? true; let use_jump_link = config.guilds[gID].include_jump_link_for_threads ?? true;
if (db[gID].bracket.channel && (use_jump_link && params.thread_id)) { if (
db[gID].bracket.channel
&& (
!try_thread
|| (
use_jump_link
|| !params.thread_id
)
)
) {
content += `\n\n[Jump To Bracket](https://discord.com/channels/${gID}/${bracket.channel}/${bracket.msg})` content += `\n\n[Jump To Bracket](https://discord.com/channels/${gID}/${bracket.channel}/${bracket.msg})`
}; };