Steffie
Steffie
DIAdiscord.js - Imagine an app
Created by Steffie on 7/8/2023 in #djs-questions
Newlines in `message.content`
Is there any way for my bot to get the message content with newlines included? I have profiles that people post that I'm trying to parse, but the line breaks between each line are just showing up as spaces, so there aren't any newlines or anything to use in my regex. For example:
Name: John Doe
Age: 00
Gender: ...
Name: John Doe
Age: 00
Gender: ...
just comes out looking like this in message.content: Name: John Doe Age: 00 Gender: ... (my bot has the message content privileged intent - its just a one-server bot)
6 replies