Ticket-Bot
Ticket-Bot copied to clipboard
Cant delte tickets
After some time of the tickets being created the members cannot delete it and it gives this error within the console
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
11|smticke | at Function.resolve (/root/smticket/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
11|smticke | at /root/smticket/node_modules/discord.js/src/structures/GuildChannel.js:318:87
11|smticke | at Array.map (node --trace-deprecation ...
to show where the warning was created)
11|smticke | (node:27848) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pass a sole object instead.
Some Times i have the same error. I fixed it with deleting the channelpermissionoverrite while closing the channel in the code.
delete or comment this all (in the red box)
but it can be that always comes an error that a channel can not be found. At least that's the case for me. Whether that is now because ... no idea. XD
but it can be that always comes an error that a channel can not be found. At least that's the case for me. Whether that is now because ... no idea. XD
You need to set the log channel in the config file.
@0x7da
i have set the Log Channel
He is posting corectly the things in the channel
He is posting corectly the things in the channel
crashed the bot on CLOSED TICKET?
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
give the bot manage, CHANNELS, or ADMIN. he cant delete Channels
It already has Administration privilidges
And no it never crashed
Same issue, few hours after the ticket is opened, it is not possible to close it.
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.
at Function.resolve (/home/tickets/ticket-bot/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28)
at /home/tickets/ticket-bot/node_modules/discord.js/src/managers/GuildChannelManager.js:249:90
at Array.map (
Same issue, few hours after the ticket is opened, it is not possible to close it.
TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role. at Function.resolve (/home/tickets/ticket-bot/node_modules/discord.js/src/structures/PermissionOverwrites.js:184:28) at /home/tickets/ticket-bot/node_modules/discord.js/src/managers/GuildChannelManager.js:249:90 at Array.map () at GuildChannelManager.edit (/home/tickets/ticket-bot/node_modules/discord.js/src/managers/GuildChannelManager.js:249:60) at TextChannel.edit (/home/tickets/ticket-bot/node_modules/discord.js/src/structures/GuildChannel.js:275:32) at InteractionCollector. (/home/tickets/ticket-bot/events/interactionCreate.js:238:16) at InteractionCollector.emit (node:events:539:35) at InteractionCollector.handleCollect (/home/tickets/ticket-bot/node_modules/discord.js/src/structures/interfaces/Collector.js:109:12) at processTicksAndRejections (node:internal/process/task_queues:96:5) {
I have that problem too!