#A few errors.

12 messages · Page 1 of 1 (latest)

sullen oasis
#

Hey, I have a few erros, I havent encountered some because of my initial problem. Heres my code attached. Basically, I want it to only show users from the freelancer.json file like this: {
"1162498330908180500" :{
"PayPal": "",
"CashApp": ""
}
}, however its showing everything and no matter what i try i get an error. Any other bug catching would be appreciated too!

final tendonBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
sullen oasis
#

bully me.

hard igloo
#

What's your exact discord.js version? npm list discord.js
Post the full error stack trace

#

your code looks like a mix of v13 and v14

hard igloo
#

MessageActionRow and MessageButton don't exist in v14

they were replaced with ActionRowBuilder and ButtonBuilder

#

still missing your error

sullen oasis
#

my first error There was an error running this command: TypeError [CommandInteractionOptionType]: Option "freelancer" is of type: 6; expected 3.

#

how would i fix, also taking into account what i was attempting to fo

hard igloo
#

your freelancer option is a mentionable option, not a string option

so you will need to change .getString('...') to .getMentionable('...')

#

you will still need to change the button and action row to the v14 format