Webhooks

Discord webhook won't work with \ in text (require protection for )
6 Replies
Abu
Abu4mo ago
Escape them by adding another backslash in front. f.e. "value": "Line 1\\nLine 2"
¿Qué quiero?
¿Qué quiero?OP4mo ago
i know, but it'll be better, if u will check it from code, cuz for each new admin say that... bruh...
Abu
Abu4mo ago
No, because they have a purpose.
¿Qué quiero?
¿Qué quiero?OP4mo ago
not checked, but with nicknames will be same result
Abu
Abu4mo ago
Not sure what you mean but you can't just add or strip backslashes programatically because that's unconventional and disables certain patterns from being made.
¿Qué quiero?
¿Qué quiero?OP4mo ago
if in {{nickname}} will be nickname like test \ it will cause same error, but we couldn't escape it i mean it will be like {"text": "test \"}, what will cause same error if someone add \ so it should be escaping from code cuz noway to escape it in trigger
Want results from more Discord servers?
Add your server