ButtonBuilder.setEmoji() Error

C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182
      return Result.err(new ValidationError("s.object(T)", `Expected the value to be an object, but received ${typeOfValue} instead`, value));
                        ^

ValidationError: Expected the value to be an object, but received string instead
    at ObjectValidator.handle (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182:25)
    at ObjectValidator.parse (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:142:88)
    at ButtonBuilder.setEmoji (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@discordjs\builders\dist\index.js:505:38)
    at Object.execute (C:\Users\Private's PC\VisualStudioProjects\NvS\commands\games\gayrate.js:71:18)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  validator: 's.object(T)',
  given: 'šŸ”'
}

What's the change with ButtonBuilder.setEmoji()?
Was this page helpful?