charinfo: escape angle brackets cause weird autolink bug
This commit is contained in:
parent
0f9bd6edeb
commit
d3fda76957
1 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,9 @@ charinfo.callback = async function (msg, line) {
|
|||
}\`](<http://www.fileformat.info/info/unicode/char/${code}>): ${name} - ${chars[index]
|
||||
.replace("_", "\\_")
|
||||
.replace("`", "\\`")
|
||||
.replace("*", "\\*")}`
|
||||
.replace("*", "\\*")
|
||||
.replace("<", "\\<")
|
||||
.replace(">", "\\>")}`
|
||||
)
|
||||
.join("\n");
|
||||
|
||||
|
@ -69,3 +71,4 @@ charinfoInteraction.callback = async function (interaction) {
|
|||
return charinfo.callback(interaction, content);
|
||||
};
|
||||
hf.registerCommand(charinfoInteraction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue