How can I log slash commands like this:
How can I log slash commands like this:
Command:
mute
Content:
member: @Member time: Time reason: Reason
/mute member: @</Almaz> time: 60m reason: offtop
Screenshot of my logging now:43 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP@</Almaz>You need to parse options. One of the way - use
<ChatInputCommandInteraction>.options.map
functionне работает, брат хлеб
An error occurred: Error: Received one or more errors
@Булочка | pasha_boez прислать код?
#rules 2 😦
Yes, if you can
little part
Send full text of error please
An error occurred: Error: Received one or more errors
it's full error
Why you use options.data? Use just options.map
same error
Type
console.error(error)
after catch. Don't stringify it
My bad. Options.data it's true
And send error from it?
Yes
@</Almaz>
went to the toilet
Oh, sorry
You use command with options?
oh, no
working, but what to do with other commands, without options
You can remove twend field with
<EmbedBuilder>.spliceFields
, or just create other embed for <ChatInputCommandInteraction>.options.data.length === 0
@</Almaz>see
Also you can create embed without fields and add them after check for options length
can you show? I don’t understand
show where to put it
@</Almaz> try it
thx
@Булочка | pasha_boez Is it possible to separate the content?
ex.:
Content:
member: @</Almaz>
time: 60m
reason: offtop
Use .join("\n") instead of .join(" ")
thx!
Where u create content const
Is this how it should be?
Remove spaces 🙂
Hard to edit code from mobile
oh, understand
And twend .
what is "twend"
maybe "second"?
2
Yeah, sorry
Want to 😴
I still need to do an essay in English tomorrow
I also didn't go to school for a week
ye
Good luck to you with it!
Code work?
hah, thanks
sec
working
👍
@Булочка | pasha_boez if you haven't seen yet
oh
timing
🙂
thank you so much for help, goodnight!
and, can you add to friends me?
thank you!
+. Thanks
You're welcome 🙂
goodnight!