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:
parent
d4100d0adc
commit
fb0bdc779e
1 changed files with 10 additions and 1 deletions
|
|
@ -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})`
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue