duck
DIAdiscord.js - Imagine an app
•Created by ivirtex on 2/19/2025 in #djs-voice
Decoding Opus packets from `AudioReceiveStream` using @discordjs/opus
afaik those format options apply to the file after the flags, so it should look more like
ffmpeg -f s16le -ac 1 -ar 48000 -i ./output.pcm voice.wav
but it sounds like this issue is leaving the scope of this channel since you've confirmed the actual audio samples are being recorded and decoded26 replies
DIAdiscord.js - Imagine an app
•Created by ivirtex on 2/19/2025 in #djs-voice
Decoding Opus packets from `AudioReceiveStream` using @discordjs/opus
Sorry I missed this, but I also have to ask what options you're using when converting
26 replies
DIAdiscord.js - Imagine an app
•Created by ivirtex on 2/19/2025 in #djs-voice
Decoding Opus packets from `AudioReceiveStream` using @discordjs/opus
We don't have one, but I also have to ask how are you playing the decoded samples?
pcm is just raw data with no headers, so even if a media player is equipped to handle pcm, it usually requires a separate means of playing the file since you need to specify the format of the data
So with that in mind most media players aren't equipped to play pcm and therefore mark them as corrupted since they can't just probe and determine what format the audio file is
26 replies
DIAdiscord.js - Imagine an app
•Created by Sincerely, alxx ᴬᴳ on 2/11/2025 in #djs-questions
Vanity Role
if by description you mean their bio/about me, that's unavailable through the api atm
5 replies
DIAdiscord.js - Imagine an app
•Created by Sincerely, alxx ᴬᴳ on 2/11/2025 in #djs-questions
Vanity Role
custom statuses are just activities of type
ActivityType.Custom
, so you can access them by parsing <GuildMember>.presence.activities
5 replies
DIAdiscord.js - Imagine an app
•Created by DoctorNobody on 2/8/2025 in #djs-questions
interaction listeners make my brain hurt
neither discord nor djs has anything to determine what's considered a "relevant event"
it does not track where in your code the event listener was added
the only thing that would distinguish this code from another
interactionCreate
listener is the if statement if (customId === 'name_modal') {
which seems to be after the code you're expecting not to execute here
in general we suggest having one listener per event, then delegating work from there
this would avoid any confusion about what event listener handles what8 replies
DIAdiscord.js - Imagine an app
•Created by 𝖗𝖚𝖒𝖎𝖟 on 2/3/2025 in #djs-questions
how do i make a new command?
It's also covered here
25 replies
DIAdiscord.js - Imagine an app
•Created by 𝖗𝖚𝖒𝖎𝖟 on 2/3/2025 in #djs-questions
how do i make a new command?
It's the step after this one and before deploying commands
25 replies
DIAdiscord.js - Imagine an app
•Created by dzlandis on 1/23/2025 in #djs-questions
Not in stage channel error when running setSupress(false) despite checking for stage channel?
1.
<GuildMember>.voice
always exists. <GuildMember>.voice.channelId
would be the thing to assert
2. I believe kinect was saying the code doesn't prove that voiceChannel
is the specific channel your bot is connected to. You could be type guarding an entirely unrelated channel.7 replies
DIAdiscord.js - Imagine an app
•Created by shadowolf on 1/12/2025 in #djs-questions
Bots sharing screens
it is
8 replies
DIAdiscord.js - Imagine an app
•Created by shadowolf on 1/12/2025 in #djs-questions
Bots sharing screens
or rather, it is possible for a bot to join a channel
no it is not possible for it to share screen
8 replies
DIAdiscord.js - Imagine an app
•Created by shadowolf on 1/12/2025 in #djs-questions
Bots sharing screens
no
8 replies
DIAdiscord.js - Imagine an app
•Created by 3zs on 1/8/2025 in #djs-questions
captcha system
that aside, you may also want to defer your responses for both the command and the buttons since it seems you do some async operations before responding
these could also result in your bot not responding in time
8 replies
DIAdiscord.js - Imagine an app
•Created by 3zs on 1/8/2025 in #djs-questions
captcha system
entirely does nothing?
if it doesn't even send the dm as expected, sounds like that code isn't executing in the first place
8 replies
DIAdiscord.js - Imagine an app
•Created by 3zs on 1/8/2025 in #djs-questions
captcha system
just to clarify, which interaction is failing?
does everything else aside from the response work as expected?
are you receiving any errors in your console as well?
8 replies
DIAdiscord.js - Imagine an app
•Created by Izzibaby on 1/7/2025 in #djs-questions
Require Vs Import, trying to "import" another script via the require method.
1. You're not required to use cjs. You're free to follow along with the guide and convert examples to esm.
2. I can't imagine that error is actually related to the difference between require and import. You'll probably want to double check the path.
3. This isn't really djs related, so if you need further help, please take this to #other-js-ts
5 replies
DIAdiscord.js - Imagine an app
•Created by Julius on 12/31/2024 in #djs-questions
Bot cant open Google Spreadsheets? Error 403
this doesn't seem discord.js related, but rather just about fetching from google docs
Not a discord.js issue? Check out #other-js-ts.
5 replies
DIAdiscord.js - Imagine an app
•Created by 𝑨𝒃𝒔𝒐𝒍𝒖𝒕𝒆 𝑪𝒂𝒓𝒏𝒂𝒈𝒆 on 12/31/2024 in #djs-questions
error when deploying commands
which is to say, you'd need to add the string option to the subcommand rather than the base command
7 replies
DIAdiscord.js - Imagine an app
•Created by 𝑨𝒃𝒔𝒐𝒍𝒖𝒕𝒆 𝑪𝒂𝒓𝒏𝒂𝒈𝒆 on 12/31/2024 in #djs-questions
error when deploying commands
when using subcommands/groups, you can't have other option types at the same level since you can't use the base command separate from the subcommands
7 replies
DIAdiscord.js - Imagine an app
•Created by murasaki_tx0 on 12/27/2024 in #djs-voice
Bot goes online but doesn't play any commands it says (bot interaction failed)
I imagine luna capybacca (real) was asking you to elaborate on the issue since this screenshot doesn't really describe very much
however for a moment, I'm going to put that aside and ask, is it possible the presence of
lava
in the logged url refers to a lavalink implementation?
since this isn't your code, it's possible that you're unaware that lavalink's continued support of youtube streaming violates youtube's tos, and by extension, discord's tos
furthermore we do not support tos violations8 replies