const { CommandInteraction, EmbedBuilder } = require("discord.js"); module.exports = { name: "hug", description: "Hug", options: [ { name: "user", description: "Select a user", type: 6, required: true, }, ], async execute( interaction, client) { const member = interaction.options.getUser("user"); const answers = [ "https://media.giphy.com/media/fX7valhnXdNr2rh1dd/giphy.gif", "https://media.giphy.com/media/mr8eXWPaLM2cw/giphy.gif", "https://media.giphy.com/media/ZDOevo6sl5Bu0/giphy.gif", "https://media.giphy.com/media/p4DjDx1WjZSmc/giphy.gif", "https://media.giphy.com/media/dvfY0JnYbxWlom6g0w/giphy-downsized-large.gif", "https://media.giphy.com/media/dvrEJiH8hbMAcopjwg/giphy.gif", "https://media.giphy.com/media/BWJm8VIb6ZpJx6HE4N/giphy-downsized-large.gif" ] let randomAnswer = answers[Math.floor(Math.random() * answers.length)]; console.log(randomAnswer); const embed = new EmbedBuilder() .setColor("BLUE") .setDescription( `**${interaction.member.user.username}** has hugged **${member.username}**` ) .setImage(answers); await interaction.reply({ content: `<@${interaction.member.id}> <@${member.id}>`, embeds: [embed], }); }, }; https://media.giphy.com/media/p4DjDx1WjZSmc/giphy.gif C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1086 return Result.err(new CombinedError(errors)); ^ CombinedError: Received one or more errors at UnionValidator.handle (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1086:23) at UnionValidator.parse (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:143:88) at EmbedBuilder.setImage (C:\Bot\node_modules\@discordjs\builders\dist\index.js:245:23) at Object.execute (C:\Bot\Commands\Information\hugs.js:37:14) at Object.execute (C:\Bot\Events\Interaction\InteractionCreate.js:25:17) at Client. (C:\Bot\Handlers\Events.js:23:55) at Client.emit (node:events:539:35) at InteractionCreateAction.handle (C:\Bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12) at Object.module.exports [as INTERACTION_CREATE] (C:\Bot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:\Bot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31) { errors: [ ValidationError: Expected undefined or null at NullishValidator.handle (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:758:79) at NullishValidator.run (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:129:23) at UnionValidator.handle (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1081:32) at UnionValidator.parse (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:143:88) at EmbedBuilder.setImage (C:\Bot\node_modules\@discordjs\builders\dist\index.js:245:23) at Object.execute (C:\Bot\Commands\Information\hugs.js:37:14) at Object.execute (C:\Bot\Events\Interaction\InteractionCreate.js:25:17) at Client. (C:\Bot\Handlers\Events.js:23:55) at Client.emit (node:events:539:35) at InteractionCreateAction.handle (C:\Bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12) { validator: 's.nullish', given: [ 'https://media.giphy.com/media/fX7valhnXdNr2rh1dd/giphy.gif', 'https://media.giphy.com/media/mr8eXWPaLM2cw/giphy.gif', 'https://media.giphy.com/media/ZDOevo6sl5Bu0/giphy.gif', 'https://media.giphy.com/media/p4DjDx1WjZSmc/giphy.gif', 'https://media.giphy.com/media/dvfY0JnYbxWlom6g0w/giphy-downsized-large.gif', 'https://media.giphy.com/media/dvrEJiH8hbMAcopjwg/giphy.gif', 'https://media.giphy.com/media/BWJm8VIb6ZpJx6HE4N/giphy-downsized-large.gif' ] }, ValidationError: Expected a string primitive at StringValidator.handle (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1667:70) at StringValidator.run (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:129:23) at UnionValidator.handle (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:1081:32) at UnionValidator.parse (C:\Bot\node_modules\@sapphire\shapeshift\dist\index.js:143:88) at EmbedBuilder.setImage (C:\Bot\node_modules\@discordjs\builders\dist\index.js:245:23) at Object.execute (C:\Bot\Commands\Information\hugs.js:37:14) at Object.execute (C:\Bot\Events\Interaction\InteractionCreate.js:25:17) at Client. (C:\Bot\Handlers\Events.js:23:55) at Client.emit (node:events:539:35) at InteractionCreateAction.handle (C:\Bot\node_modules\discord.js\src\client\actions\InteractionCreate.js:81:12) { validator: 's.string', given: [ 'https://media.giphy.com/media/fX7valhnXdNr2rh1dd/giphy.gif', 'https://media.giphy.com/media/mr8eXWPaLM2cw/giphy.gif', 'https://media.giphy.com/media/ZDOevo6sl5Bu0/giphy.gif', 'https://media.giphy.com/media/p4DjDx1WjZSmc/giphy.gif', 'https://media.giphy.com/media/dvfY0JnYbxWlom6g0w/giphy-downsized-large.gif', 'https://media.giphy.com/media/dvrEJiH8hbMAcopjwg/giphy.gif', 'https://media.giphy.com/media/BWJm8VIb6ZpJx6HE4N/giphy-downsized-large.gif' ] } ] }