Search code examples
node.jsdiscorddiscord.jsargs

Argument is not fully displayed in discord.js v12


My arg is not fully displayed. It sends only the first word. I don't know what to try. Here is my problem I want to fix: Input: Output: And here is a hastebin with my code: https://hastebin.com/okayobanuz.js


Solution

  • your code says const comment = args[1]; which is only one word, you need to use const comment = args.slice(1).join(" "); to get full argument