Ticket-Bot icon indicating copy to clipboard operation
Ticket-Bot copied to clipboard

Cant delte tickets

Open Valdblade opened this issue 2 years ago • 11 comments

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 () 11|smticke | at TextChannel.edit (/root/smticket/node_modules/discord.js/src/structures/GuildChannel.js:318:57) 11|smticke | at InteractionCollector. (/root/smticket/events/interactionCreate.js:205:16) 11|smticke | at InteractionCollector.emit (node:events:402:35) 11|smticke | at InteractionCollector.handleCollect (/root/smticket/node_modules/discord.js/src/structures/interfaces/Collector.js:109:12) 11|smticke | at runMicrotasks () 11|smticke | at processTicksAndRejections (node:internal/process/task_queues:96:5) { 11|smticke | [Symbol(code)]: 'INVALID_TYPE' 11|smticke | } 11|smticke | (node:27848) DeprecationWarning: Passing strings for MessageEmbed#setAuthor is deprecated. Pass a sole object instead. 11|smticke | (Use 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.

Valdblade avatar Apr 24 '22 14:04 Valdblade

Some Times i have the same error. I fixed it with deleting the channelpermissionoverrite while closing the channel in the code.

FoxXxHater avatar May 23 '22 10:05 FoxXxHater

image

delete or comment this all (in the red box)

FoxXxHater avatar May 23 '22 10:05 FoxXxHater

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

FoxXxHater avatar May 23 '22 10:05 FoxXxHater

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 avatar May 28 '22 18:05 0x7da

@0x7da

i have set the Log Channel image

FoxXxHater avatar May 30 '22 08:05 FoxXxHater

He is posting corectly the things in the channel

image

FoxXxHater avatar May 30 '22 08:05 FoxXxHater

He is posting corectly the things in the channel

image

crashed the bot on CLOSED TICKET?

0x7da avatar Jun 02 '22 15:06 0x7da

TypeError [INVALID_TYPE]: Supplied parameter is not a User nor a Role.

give the bot manage, CHANNELS, or ADMIN. he cant delete Channels image

0x7da avatar Jun 02 '22 15:06 0x7da

It already has Administration privilidges

Valdblade avatar Jun 07 '22 10:06 Valdblade

And no it never crashed

Valdblade avatar Jun 07 '22 10:06 Valdblade

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) {

Ark123321 avatar Jun 27 '22 13:06 Ark123321

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!

Migueldeeteenaa avatar Sep 03 '22 12:09 Migueldeeteenaa