Bring back the message string arrays for messages and embeds. #6515
-
In Discord.js V12 it was possible to set an array of strings in an embed description or a message, this was very handy to keep the code clean instead of 1 crazy long string with \n to break. Here is an example of the string array:
With this method, u could keep the code nice and clean! I hope this will get added to V13!!! |
Beta Was this translation helpful? Give feedback.
Answered by
Jiralite
Aug 23, 2021
Replies: 1 comment
-
Why can't you just do this? [
`${data.antiinvite ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | AntiInvite`,
`${data.antistaffping ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | AntiStaffPing`,
`${data.antispam.enabled ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | AntiSpam`,
`${data.antiswear.enabled ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | AntiSwearing`,
`${data.levelsystem ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | LevelingSystem`,
`${data.joinleave.stickyroles ? '<:On:838758070632054814>' : '<:Off:838758070615146526>'} | StickyRoles`
-]
+].join("\n") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kyranet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why can't you just do this?