TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (/home/phil/Documents/GIT/gurglebot/lib/internal/errors.js:393:5)
at validateString (/home/phil/Documents/GIT/gurglebot/lib/internal/validators.js:161:11)
at parse (/home/phil/Documents/GIT/gurglebot/lib/path.js:1450:5)
at basename (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/util/Util.js:464:15)
at get spoiler [as spoiler] (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/structures/AttachmentBuilder.js:85:12)
at AttachmentBuilder.setSpoiler (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/structures/AttachmentBuilder.js:67:26)
at /home/phil/Documents/GIT/gurglebot/functions/ENGINE/contentWarning/COMPONENT/modal/repost.js:26:16
at /home/phil/Documents/GIT/gurglebot/node_modules/@discordjs/collection/dist/collection.cjs:174:14
at Function.from (<anonymous>)
at Collection.map (/home/phil/Documents/GIT/gurglebot/node_modules/@discordjs/collection/dist/collection.cjs:172:18) {code: 'ERR_INVALID_ARG_TYPE', stack: 'TypeError [ERR_INVALID_ARG_TYPE]: The "path" …cordjs/collection/dist/collection.cjs:172:18)', message: 'The "path" argument must be of type string. Received undefined', toString: ƒ, Symbol(kIsNodeError): true}
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (/home/phil/Documents/GIT/gurglebot/lib/internal/errors.js:393:5)
at validateString (/home/phil/Documents/GIT/gurglebot/lib/internal/validators.js:161:11)
at parse (/home/phil/Documents/GIT/gurglebot/lib/path.js:1450:5)
at basename (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/util/Util.js:464:15)
at get spoiler [as spoiler] (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/structures/AttachmentBuilder.js:85:12)
at AttachmentBuilder.setSpoiler (/home/phil/Documents/GIT/gurglebot/node_modules/discord.js/src/structures/AttachmentBuilder.js:67:26)
at /home/phil/Documents/GIT/gurglebot/functions/ENGINE/contentWarning/COMPONENT/modal/repost.js:26:16
at /home/phil/Documents/GIT/gurglebot/node_modules/@discordjs/collection/dist/collection.cjs:174:14
at Function.from (<anonymous>)
at Collection.map (/home/phil/Documents/GIT/gurglebot/node_modules/@discordjs/collection/dist/collection.cjs:172:18) {code: 'ERR_INVALID_ARG_TYPE', stack: 'TypeError [ERR_INVALID_ARG_TYPE]: The "path" …cordjs/collection/dist/collection.cjs:172:18)', message: 'The "path" argument must be of type string. Received undefined', toString: ƒ, Symbol(kIsNodeError): true}