What is returned when getting the value of a .addChannelOption subcommand?
^
11 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Also
do i use .getString?
im trying to get the channel id from the .addChannelOption subcommand
to use in cannel.send
*channel.send
edit:
const channel = interaction.options.getChannel('channel');
how do i get the channelID from
channel
?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i did
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Also
i have all my embeds in a JSON file
and JSON doesnt support hexadecimal codes
so
whats an alternative for the color property?
yeah
but how would i implement it?
i cant do
"color": "0x0033ff",
?
i tried that
so
"color": 0x0033ff`
huhVSCode didnt liek that
*like
well
yeah
its in JSON format
so i use json
whats the dec value?
RGB?
so
13311
i thought it would convert to
nvm
how is it calculated?
yeah