xubby
xubby
DIAdiscord.js - Imagine an app
Created by xubby on 6/21/2023 in #djs-questions
conversion of ApplicationCommand to SlashCommandBuilder object
is there a way to convert ApplicationCommand to SlashCommandBuilder object? coz the object received from fetching the API and the locally created ones won't match when I directly compare them after serialization
46 replies
DIAdiscord.js - Imagine an app
Created by xubby on 5/28/2023 in #djs-questions
Can't login
For some weird reason, it won't even let me login but yet it throws me this error today Thinkeng
throw new RateLimitError(rateLimitData);
^

RateLimitError[/gateway/bot]
at onRateLimit (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:562:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:913:7)
at async SequentialHandler.queueRequest (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async WebSocketManager.fetchGatewayInformation (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1311:18)
at async managerToFetchingStrategyOptions (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:78:25)
at async SimpleShardingStrategy.spawn (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1098:29)
at async WebSocketManager.updateShardCount (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1324:5)
at async WebSocketManager.connect (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1367:5) {
timeToReset: 4495,
limit: 2,
method: 'GET',
hash: '41f9cd5d28af77da04563bcb1d67fdfd',
url: 'https://discord.com/api/v10/gateway/bot',
route: '/gateway/bot',
majorParameter: 'global',
global: false
}
throw new RateLimitError(rateLimitData);
^

RateLimitError[/gateway/bot]
at onRateLimit (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:562:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:913:7)
at async SequentialHandler.queueRequest (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:862:14)
at async REST.request (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\rest\dist\index.js:1387:22)
at async WebSocketManager.fetchGatewayInformation (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1311:18)
at async managerToFetchingStrategyOptions (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:78:25)
at async SimpleShardingStrategy.spawn (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1098:29)
at async WebSocketManager.updateShardCount (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1324:5)
at async WebSocketManager.connect (C:\Users\bin\Desktop\Tsukuyomi\node_modules\@discordjs\ws\dist\index.js:1367:5) {
timeToReset: 4495,
limit: 2,
method: 'GET',
hash: '41f9cd5d28af77da04563bcb1d67fdfd',
url: 'https://discord.com/api/v10/gateway/bot',
route: '/gateway/bot',
majorParameter: 'global',
global: false
}
8 replies
DIAdiscord.js - Imagine an app
Created by xubby on 3/18/2023 in #djs-voice
AudioPlayer#stop method
so like it mentions that the player will be destroyed so what am confused is like how? I checked the source and all I see is the resource being destroyed, not the player and if it is actually destroying the player, does it mean I have to make a new AudioPlayer?
4 replies
DIAdiscord.js - Imagine an app
Created by xubby on 3/18/2023 in #djs-voice
Multiple Voice Connections
Is it possible to have multiple voice connection subscription for a guild? if so, how would I go about retrieving a particular/specific connection that I'd like to terminate?
4 replies
DIAdiscord.js - Imagine an app
Created by xubby on 3/11/2023 in #djs-voice
retrieving a subscribed AudioPlayer on a voice connection
I mean we have the function getVoiceConnection that retrieves a VoiceConnection for a guild so is there any way to get an AudioPlayer from it so that I can pause/resume/destroy it from any command?
6 replies
DIAdiscord.js - Imagine an app
Created by xubby on 11/19/2022 in #djs-voice
Cannot play audio as no valid encryption package is installed
I literally have sodium, libsodium and libsodium-wrappers installed and yet it still throws this damn error.
Error: Cannot play audio as no valid encryption package is installed.
- Install sodium, libsodium-wrappers, or tweetnacl.
- Use the generateDependencyReport() function for more information.

at Object.fallbackError (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:166:9)
at Networking.encryptOpusPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:663:17)
at Networking.createAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:653:50)
at Networking.prepareAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:599:33)
at VoiceConnection.prepareAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:1412:29)
at AudioPlayer._preparePacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:981:18)
at AudioPlayer._stepPrepare (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:962:14)
at prepareNextAudioFrame (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:87:29)
at audioCycleStep (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:76:3)
at Timeout._onTimeout (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:83:45)
Error: Cannot play audio as no valid encryption package is installed.
- Install sodium, libsodium-wrappers, or tweetnacl.
- Use the generateDependencyReport() function for more information.

at Object.fallbackError (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:166:9)
at Networking.encryptOpusPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:663:17)
at Networking.createAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:653:50)
at Networking.prepareAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:599:33)
at VoiceConnection.prepareAudioPacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:1412:29)
at AudioPlayer._preparePacket (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:981:18)
at AudioPlayer._stepPrepare (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:962:14)
at prepareNextAudioFrame (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:87:29)
at audioCycleStep (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:76:3)
at Timeout._onTimeout (file:///C:/Users/bin/Desktop/Mastery/node_modules/@discordjs/voice/dist/index.mjs:83:45)
40 replies
DIAdiscord.js - Imagine an app
Created by xubby on 7/26/2022 in #djs-questions
Video format support in embeds
By any chance, will video formats be supported in embeds in the near future or is this like a no no thing that will never happen?
8 replies