charinfo: escape angle brackets cause weird autolink bug

This commit is contained in:
Cynthia Foxwell 2024-09-20 18:12:20 -06:00
parent 0f9bd6edeb
commit d3fda76957

View file

@ -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);