noby
noby
DIAdiscord.js - Imagine an app
Created by noby on 8/19/2022 in #djs-questions
Client Actions Dispatch
What is the part of the Client that dispatches gateway events?
11 replies
DIAdiscord.js - Imagine an app
Created by noby on 8/13/2022 in #djs-questions
Message Reactions Length
How do i get the length of how many reactions a message has?
2 replies
DIAdiscord.js - Imagine an app
Created by noby on 8/3/2022 in #djs-questions
Collector Strange Error
`Error: 39
at InteractionCollector.<anonymous> (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\InteractionResponse.js:37:21)
at Object.onceWrapper (node:events:642:26)
at InteractionCollector.emit (node:events:539:35)
at InteractionCollector.stop (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\interfaces\Collector.js:218:10)
at Timeout.<anonymous> (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\interfaces\Collector.js:96:61)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
`Error: 39
at InteractionCollector.<anonymous> (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\InteractionResponse.js:37:21)
at Object.onceWrapper (node:events:642:26)
at InteractionCollector.emit (node:events:539:35)
at InteractionCollector.stop (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\interfaces\Collector.js:218:10)
at Timeout.<anonymous> (C:\Users\Private''s PC\VisualStudioProjects\NvS\node_modules\discord.js\src\structures\interfaces\Collector.js:96:61)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
What is this error?
4 replies
DIAdiscord.js - Imagine an app
Created by noby on 7/20/2022 in #djs-questions
Delete Messages in a Channel (Not Purge)
How would I delete all the messages in a channel without knowing how many messages are in the channel?
12 replies
DIAdiscord.js - Imagine an app
Created by noby on 7/18/2022 in #djs-questions
ButtonBuilder.setEmoji() Error
C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182
return Result.err(new ValidationError("s.object(T)", `Expected the value to be an object, but received ${typeOfValue} instead`, value));
^

ValidationError: Expected the value to be an object, but received string instead
at ObjectValidator.handle (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182:25)
at ObjectValidator.parse (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:142:88)
at ButtonBuilder.setEmoji (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@discordjs\builders\dist\index.js:505:38)
at Object.execute (C:\Users\Private's PC\VisualStudioProjects\NvS\commands\games\gayrate.js:71:18)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
validator: 's.object(T)',
given: '🔁'
}
C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182
return Result.err(new ValidationError("s.object(T)", `Expected the value to be an object, but received ${typeOfValue} instead`, value));
^

ValidationError: Expected the value to be an object, but received string instead
at ObjectValidator.handle (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:1182:25)
at ObjectValidator.parse (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@sapphire\shapeshift\dist\index.js:142:88)
at ButtonBuilder.setEmoji (C:\Users\Private's PC\VisualStudioProjects\NvS\node_modules\@discordjs\builders\dist\index.js:505:38)
at Object.execute (C:\Users\Private's PC\VisualStudioProjects\NvS\commands\games\gayrate.js:71:18)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
validator: 's.object(T)',
given: '🔁'
}
What's the change with ButtonBuilder.setEmoji()?
20 replies