/usr/src/app/node_modules/@discordjs/rest/dist/index.js:730
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50013]: Missing Permissions
at handleErrors (/usr/src/app/node_modules/@discordjs/rest/dist/index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/usr/src/app/node_modules/@discordjs/rest/dist/index.js:1133:23)
at async SequentialHandler.queueRequest (/usr/src/app/node_modules/@discordjs/rest/dist/index.js:963:14)
at async _REST.request (/usr/src/app/node_modules/@discordjs/rest/dist/index.js:1278:22)
at async TextChannel.send (/usr/src/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:177:15)
...
The bot shouldn't crash and simply print the error message on console
See output below
The bot shouldn't crash and simply print the error message on console