Ошибка при отправлении файла discord.js

Дискорд бот бы скомпилирован в exe файл с помощью pkg. При попытке отправить файл таким кодом:

interaction.reply({files: ['./map3.png']});
interaction.reply({ files: ['https://imgur.com/gallery/o6qP0hx'] });

Выдаёт ошибку:

Uncaught Exception Encountered!!
err:  TypeError: Invalid host defined options
    at C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:676:53
    at C:\snapshot\RSSRPBot\node_modules\@discordjs\util\dist\index.js:34:33
    at RequestManager.resolveRequest (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:802:48)
    at RequestManager.queueRequest (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:759:46)
    at REST.raw (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:914:32)
    at REST.request (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:910:33)
    at REST.post (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:901:17)
    at ChatInputCommandInteraction.reply (C:\snapshot\RSSRPBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client.<anonymous> (C:\snapshot\RSSRPBot\index.js)
Stack trace:  TypeError: Invalid host defined options
    at C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:676:53
    at C:\snapshot\RSSRPBot\node_modules\@discordjs\util\dist\index.js:34:33
    at RequestManager.resolveRequest (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:802:48)
    at RequestManager.queueRequest (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:759:46)
    at REST.raw (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:914:32)
    at REST.request (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:910:33)
    at REST.post (C:\snapshot\RSSRPBot\node_modules\@discordjs\rest\dist\index.js:901:17)
    at ChatInputCommandInteraction.reply (C:\snapshot\RSSRPBot\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:111:28)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client.<anonymous> (C:\snapshot\RSSRPBot\index.js)

При выполнении просто через node index.js (не скомпилированного в exe) всё работает


Ответы (0 шт):