Mike | Team BG
Mike | Team BG
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
Now I'm getting this: Unhandled Rejection at: Promise { <rejected> TypeError [InvalidType]: Supplied overwrites is not an Array or Collection of Permission Overwrites. at PermissionOverwriteManager.set (E:\Bot_Development\TeamBG4.2\node_modules\discord.js\src\managers\PermissionOverwriteManager.js:68:9) at E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:49:56 at _Collection.forEach (<anonymous>) at Object.execute (E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:45:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (E:\Bot_Development\TeamBG4.2\src\events\interactionCreate.js:15:13) { code: 'InvalidType' } } reason: TypeError [InvalidType]: Supplied overwrites is not an Array or Collection of Permission Overwrites. at PermissionOverwriteManager.set (E:\Bot_Development\TeamBG4.2\node_modules\discord.js\src\managers\PermissionOverwriteManager.js:68:9) at E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:49:56 at _Collection.forEach (<anonymous>) at Object.execute (E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:45:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (E:\Bot_Development\TeamBG4.2\src\events\interactionCreate.js:15:13) { code: 'InvalidType' }
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
Doesn't it?
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
I thought it already does that?
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
So filter by channel type of text, voice, stage, forum, announcement, and category
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
I still don't know what you mean by that
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
There are no threads in the channel in question. Plus I think that my handler for finding if there are overwrites present should accommodate that correct?
17 replies
DIAdiscord.js - Imagine an app
Created by Mike | Team BG on 12/9/2023 in #djs-questions
Not creating channel overwrites
Tried that and still gave me this: Unhandled Rejection at: Promise { <rejected> TypeError: Cannot read properties of undefined (reading 'cache') at E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:46:73 at _Collection.forEach (<anonymous>) at Object.execute (E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:45:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (E:\Bot_Development\TeamBG4.2\src\events\interactionCreate.js:15:13) } reason: TypeError: Cannot read properties of undefined (reading 'cache') at E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:46:73 at _Collection.forEach (<anonymous>) at Object.execute (E:\Bot_Development\TeamBG4.2\src\commands\Moderation\clone.js:45:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.execute (E:\Bot_Development\TeamBG4.2\src\events\interactionCreate.js:15:13)
17 replies