edocsil
DIAdiscord.js - Imagine an app
•Created by edocsil on 9/8/2024 in #djs-questions
interaction.channel.guildId undefined after ephemeral reply
9 replies
DIAdiscord.js - Imagine an app
•Created by edocsil on 7/31/2023 in #djs-questions
Disabling threads sweeper
Trying to disable the threads sweeper but having trouble telling whether it was done correctly.
Client constructor:
Logging client.sweepers gives:
Was this the correct way to do it?
intervals.threads
is null
like the intervals for sweepers of other types, but does that mean "never sweep"? I still see a lifetime
in the options but unclear if interval being null makes that moot.
Also tried:
4 replies
DIAdiscord.js - Imagine an app
•Created by edocsil on 6/15/2023 in #djs-questions
[FIXED] TypeError (reading 'user') when creating threads
Started having this error pop up on two bots different bots starting around <t:1686789295>
Code:
On both bots this happens when creating private threads. No code has been updated for ~2 days and this function runs very frequently (edit: not specific to private threads)
39 replies
DIAdiscord.js - Imagine an app
•Created by edocsil on 3/16/2023 in #djs-questions
Get name of other bot's command from ID
Using the
guildAuditLogEntryCreate
event to detect when someone changes permissions for an application command. If it's a specific command that's edited I would like to get the human-readable command name so I can post an alert.
Tried:
Is it possible to get the name of a command given the command ID and application ID?7 replies
DIAdiscord.js - Imagine an app
•Created by edocsil on 2/22/2023 in #djs-questions
What can cause FetchedThreads.hasMore to be true?
Does GuildChannelManager.fetchActiveThreads have a limit or will it always fetch all threads? FetchedThreads.hasMore exists and I'm wondering what types of situations would call for multiple fetches, if any
15 replies