#can't not use endpoint

1 messages · Page 1 of 1 (latest)

sonic cipher
#

i still have the same error and in my console i see now this error

#
    throw this.error;
    ^

CombinedPropertyError: Received one or more errors
    at ArrayValidator.handle (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:427:70)
    at ArrayValidator.parse (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
    at EmbedBuilder.addFields (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@discordjs\builders\dist\messages\embed\Embed.cjs:17:42)
    at process.<anonymous> (C:\Users\schad\OneDrive\discord bot\spooky-v14\src\bot.js:109:10)
    at process.emit (node:events:513:28)
    at emit (node:internal/process/promises:149:20)
    at processPromiseRejections (node:internal/process/promises:283:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32) {
  errors: [
    [
      1,
      CombinedPropertyError: Received one or more errors
          at ObjectValidator.handleIgnoreStrategy (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:1202:72)
          at ObjectValidator.handleStrategy (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:1075:47)
          at ObjectValidator.handle (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:1172:17)
          at ObjectValidator.run (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:99:23)
          at ArrayValidator.handle (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:421:37)
          at ArrayValidator.parse (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
          at EmbedBuilder.addFields (C:\Users\schad\OneDrive\discord bot\spooky-v14\node_modules\@discordjs\builders\dist\messages\embed\Embed.cjs:17:42)
          at process.<anonymous> (C:\Users\schad\OneDrive\discord bot\spooky-v14\src\bot.js:109:10)
          at process.emit (node:events:513:28)
          at emit (node:internal/process/promises:149:20) {
        errors: [ [ 'value', [ExpectedConstraintError] ] ]
      }
    ]
  ]
}

Node.js v18.7.0```
vivid yacht
#

Looks like Sapphire is catching an error...that is strange

#

Can you log what commands is?

sonic cipher
turbid wrenBOT
#

Tag suggestion for @sonic cipher:
To share long code snippets use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks.

sonic cipher
vivid yacht
#

Not sure if it matters, but my notes say the objects should be more like:

{
  name: 'setchannelforbot',
  description: 'The Description',
  options: [Array],
  default_permission: undefined
}

The difference being your options are [ [Object] ] but I think that's fine as [Object] is an Array 🤔

#

ah, is it an Embed error you're catching?

#

Yes! look you're errors are the Embed

#

EmbedBuilder.addFields

sonic cipher
#

yes if errors they send them to an channel

vivid yacht
#

No...your Embed is erroring

#

Your Error catch...is itself erroring

#

Can you remove the embed for now and try again

sonic cipher
#

it was this

#

but i still have the same error that my bot can't use the endpoint

vivid yacht
#

Google the error, see if anything comes up

#

Or search in DJS for the error too

sonic cipher
#

ok

vivid yacht