victorr
DIAdiscord.js - Imagine an app
•Created by victorr on 7/30/2023 in #djs-questions
Unmute button not working
6 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 7/17/2023 in #djs-questions
presenceUpdate event emitter doesn't return activity channelId
I'm using the
presenceUpdate
event to detect when an activity has been started. But I need to get the channel the activity has been started in (more specifically the channel Id), what can I do to get this?
Because the emitter doesn't emit any details about the channel the activity is being hosted in.4 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 7/16/2023 in #djs-questions
Emitter Not Firing
I'm currently using the
voiceStateUpdate
event emitter, and I believe I've come across a problem.
When a user leaves the voice channel, a new state (event) gets emitted. However, when a user leaves the voice channel while streaming, a new state (event) does not get emitted.
Just to clarify, it seems to be registering starting a stream and ending a stream fine. Just the problem above ^^
Is this a problem with the discord api, discord.js or possibly even my code?45 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 7/12/2023 in #djs-questions
Collector filter editing after creation
So I have an embed with buttons (panel) and each voice channel has one panel to itself.
I've filtered the panel using the channelId so that someone in
voiceChannel2
can't interact with voiceChannel1
panel.
My collector + filter code:
buttonChannelId
is the channelId
The new problem I have is one of the buttons (stage), makes a stage and deletes the voice channel and moves all the users into that stage.
During this process I assign the new channel Id value to the buttonChannelId
variable.
That value changes within the collector itself, but the problem I have is, that value doesn't change in the filters for the collector. So it ignores all buttons from the panel after it becomes a stage.
What can I do?
(Apologies for rambling on, I wanted to explain my situation with as much detail as possible)10 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 7/12/2023 in #djs-questions
Message Specific Collector
So I have a embed with buttons which acts as a panel to control a voice channel. There can be multiple of these panels for multiple voice channels.
Right now every panel generated can be used interchangeably.
How would I differentiate each panel with each voice channel so that only the generated voice panel/specific panel can be used to interact with the voice channel.
Here my current code for the collector:
"discord.js": "^14.11.0"
5 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 7/1/2023 in #djs-questions
Activity Filtering
If I wanted to filters those discord activities, like the games you can play, would I need to filter via activity type or something else? Because things such as applications that show up on users statuses e.g. Vs code, roblox, and other games are the same activity type as the activities you can play on discord.
Current Code:
Djs version:
"discord.js": "^14.11.0",
14 replies
DIAdiscord.js - Imagine an app
•Created by victorr on 6/25/2023 in #djs-questions
Button functioning once
Code - https://srcshare.io/64978dcec50c534c8dbb3831
When I click the comeplay or edit-name button the first time, it works as intended. But if I click it again, it gets logged through the collector, but for example on the comeplay button when it gets to line 22 when the voice channel name should change; nothing happens. No errors get logged in the console, but on discord it does say "This interaction failed" (doesn't say it the first time).
Any help would be appreciated..
Djs version:
"discord.js": "^14.9.0",
14 replies