You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Control characters in the inclusive range U+0000 to U+001F are invalid JSON per section 7 of RFC 7159, and jq handles this by firing off a slightly difficult-to-debug error (in our use case). Because of this, passing any unescaped control characters including CR, LF, and tabs causes discord.sh to fail to send the message (specifically, Discord rejects the message with "cannot send an empty message" since jq bails out).
As of now, this will not be fixed. It will be up to the end user to escape desired control characters using sed and/or tr.
Reasons:
Escaping and/or removing control characters inside discord.sh requires us to add dependencies, specifically sed and/or tr. This breaks the goal of maximum portability.
Control characters in the inclusive range
U+0000
toU+001F
are invalid JSON per section 7 of RFC 7159, and jq handles this by firing off a slightly difficult-to-debug error (in our use case). Because of this, passing any unescaped control characters including CR, LF, and tabs causes discord.sh to fail to send the message (specifically, Discord rejects the message with "cannot send an empty message" since jq bails out).As of now, this will not be fixed. It will be up to the end user to escape desired control characters using
sed
and/ortr
.Reasons:
sed
and/ortr
. This breaks the goal of maximum portability.Sources:
Workaround examples:
Do you have an example of a workaround you came up with? Comment it here.
The text was updated successfully, but these errors were encountered: