Webhooks

Discord webhook won't work with \ in text (require protection for )
6 Replies
Abu
Abu2mo ago
Escape them by adding another backslash in front. f.e. "value": "Line 1\\nLine 2"
¿Qué quiero?
¿Qué quiero?2mo ago
i know, but it'll be better, if u will check it from code, cuz for each new admin say that... bruh...
Abu
Abu2mo ago
No, because they have a purpose.
¿Qué quiero?
¿Qué quiero?2mo ago
not checked, but with nicknames will be same result
Abu
Abu2mo 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?2mo 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