TehPig
DIAdiscord.js - Imagine an app
•Created by TehPig on 2/14/2025 in #djs-questions
[discord-rpc] Retrieving authorization code for access token
Hey there, is there a way to retrieve the authorization code upon authorizing an RPC? I want to use scopes without exposing the client secret to every user that runs the app. These arethe current options that I supply, although it does not work without providing the code, which cannot be retrieved so far.
3 replies
DIAdiscord.js - Imagine an app
•Created by TehPig on 2/9/2025 in #djs-questions
Using <GuildsAPI>.getMembers() to fetch specific members.
Can multiple users be fetched using this method or do I have to fetch all the users seperately using <GuildsAPI>.getMember() instead?
Using
+-- @discordjs/[email protected]
+-- @discordjs/[email protected]
+-- @discordjs/[email protected]
8 replies
DIAdiscord.js - Imagine an app
•Created by TehPig on 8/9/2024 in #djs-questions
missing permissions / permissions are already granted
Hey there, my bot is not able to create a channel.
As the error suggests, it is missing some kind of permission, although it already has both manage roles and manage channels permissions to create the channel with permission overwrites. Is there any possible solution?
22 replies
DIAdiscord.js - Imagine an app
•Created by TehPig on 7/23/2024 in #djs-questions
premiumSubscriptionCount is NaN
what could be the cause of this?
15 replies
DIAdiscord.js - Imagine an app
•Created by TehPig on 10/15/2023 in #djs-questions
channelUpdate compare permissions
Hey there, I tried using the channelUpdate event to get the difference between the old permissions and the new channel permissions.
There is a slight issue though. Upon using this line to check if the permissions are changed, it always logs false in console, making the permissions check basically usesless.
16 replies
DIAdiscord.js - Imagine an app
•Created by TehPig on 10/5/2023 in #djs-questions
channelUpdate Permissions
Hey there, how can I retreive the permission changes on the event? Upon fetching the audit logs and looking for the channelUpdate AuditLogEvent,
logs.entries.first().changes
logs this
How can I use the bitfields to actual permissions?5 replies