ItsDrike / CommandBot

Discord Bot which can handle most administrative tasks for servers.
Other
0 stars 0 forks source link

Sanitize infraction message #26

Open ItsDrike opened 4 years ago

ItsDrike commented 4 years ago

The infraction message should never contain quotes due to the way it is displayed:

The way it's supposed to be displayed: image

The issue happens when the infraction message contains " or ' as this will result in bad color formatting in this codeblock.

image

Therefore we should either edit all of the quotes to be prepended with \ therefore ignoring that issue, although this might be confusing since the reason will be different from what was intended, or we should sanitize the message so the infraction message can't contain such characters.