Spookadia
Spookadia
DIAdiscord.js - Imagine an app
Created by Spookadia on 10/3/2023 in #djs-questions
Fetching thread from Forum Channel Message
ThumbsUp
7 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 10/3/2023 in #djs-questions
Fetching thread from Forum Channel Message
i see; i think i confused myself with .thread, i assume that's if there's literally a thread attached to a message? and yea that's exactly what i need, thank you sukaJam
7 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
missed these messages; yea that should definitely help. thank you!
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
2023-08-18T08:33:29: RequestAbortedError [AbortError]: Request aborted
2023-08-18T08:33:29: at RequestHandler.abort (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/client.js:1376:44)
2023-08-18T08:33:29: at abort (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/api/abort-signal.js:8:10)
2023-08-18T08:33:29: at self.<computed> (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/api/abort-signal.js:29:5)
2023-08-18T08:33:29: at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
2023-08-18T08:33:29: at EventTarget.dispatchEvent (node:internal/event_target:704:26)
2023-08-18T08:33:29: at abortSignal (node:internal/abort_controller:365:10)
2023-08-18T08:33:29: at AbortController.abort (node:internal/abort_controller:387:5)
2023-08-18T08:33:29: at Timeout.<anonymous> (/root/Discord-Bots/Everyone-Votes/live/node_modules/@discordjs/rest/dist/index.js:778:73)
2023-08-18T08:33:29: at listOnTimeout (node:internal/timers:573:17)
2023-08-18T08:33:29: at process.processTimers (node:internal/timers:514:7) {
2023-08-18T08:33:29: code: 'UND_ERR_ABORTED'
2023-08-18T08:33:29: }
2023-08-18T08:33:29: RequestAbortedError [AbortError]: Request aborted
2023-08-18T08:33:29: at RequestHandler.abort (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/client.js:1376:44)
2023-08-18T08:33:29: at abort (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/api/abort-signal.js:8:10)
2023-08-18T08:33:29: at self.<computed> (/root/Discord-Bots/Everyone-Votes/live/node_modules/undici/lib/api/abort-signal.js:29:5)
2023-08-18T08:33:29: at [nodejs.internal.kHybridDispatch] (node:internal/event_target:762:20)
2023-08-18T08:33:29: at EventTarget.dispatchEvent (node:internal/event_target:704:26)
2023-08-18T08:33:29: at abortSignal (node:internal/abort_controller:365:10)
2023-08-18T08:33:29: at AbortController.abort (node:internal/abort_controller:387:5)
2023-08-18T08:33:29: at Timeout.<anonymous> (/root/Discord-Bots/Everyone-Votes/live/node_modules/@discordjs/rest/dist/index.js:778:73)
2023-08-18T08:33:29: at listOnTimeout (node:internal/timers:573:17)
2023-08-18T08:33:29: at process.processTimers (node:internal/timers:514:7) {
2023-08-18T08:33:29: code: 'UND_ERR_ABORTED'
2023-08-18T08:33:29: }
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
just pm2's default process error log
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
how would i go about fixing that? i'm not sure why it'd log but not fail
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
ideally it should error and restart itself (through pm2), i don't know why it did not
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
well i just call client.login() and it shouldn't catch any errors, but in this particular situation i got an error in my logs but it did not stop the process, which caused it just to sit and do nothing
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
but i want to make sure it doesn't get stuck again by just giving up getting ready
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 8/19/2023 in #djs-questions
Best way to handle ready event failure
No description
12 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
doing this resolved my problem:
let stream = (await (await fetch(song.track.preview_url)).blob()).stream()
let resource = createAudioResource(stream)
let stream = (await (await fetch(song.track.preview_url)).blob()).stream()
let resource = createAudioResource(stream)
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
i getcha, i'll fetch it by itself first; now i'm just confused why my local one running on windows does work when just putting in a URL for the input
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
i see, so windows is doing that automatically somehow?
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
i am now realizing though that playbackDuration is 0 regardless of which PC, and if it's fully buffered or not
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
looking further into the audioplayer state, it goes immediate from Buffering -> Playing -> Idle. the audioresource is .readable() but has no duration, even though it's 30 seconds
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 7/5/2023 in #djs-voice
AudioResource not playing on Linux
Discord.js 14.11.0 and Node 20.3.1 (20.2.0 on local pc)
11 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 12/19/2022 in #djs-questions
Dev Environment with Sharding
👍
9 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 12/19/2022 in #djs-questions
Dev Environment with Sharding
i'm trying to pass totalShards as a ShardManagerOption but it only ever boots up 1
9 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 12/19/2022 in #djs-questions
Dev Environment with Sharding
i'll follow the guide and docs while making the transition over but i just need to make sure 2+ shards can communicate to each other correctly since quite a few things need to be refactored
9 replies
DIAdiscord.js - Imagine an app
Created by Spookadia on 12/19/2022 in #djs-questions
Dev Environment with Sharding
i meant moreso how do i test changes on a development bot that's only in a few servers and force sharding for it?
9 replies