Stqlth
Stqlth
DIAdiscord.js - Imagine an app
Created by Stqlth on 2/19/2024 in #djs-questions
Can two shards have the same guild in the guild cache?
This may seem like a dumb question, but it's genuine; I believe I am having a scenario where two shards have the same guild. ping on reply
35 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 7/1/2023 in #djs-questions
Preventing some guilds from being cached
I want to customize my cache to prevent my Bot from caching the GuildMembers of any guild which isn't set up in my database, because without being setup, the bot really can't do anything for the server. and I would like to save memory I have a list of ids I don't want cached when my bot starts up, and I was thinking of using sweepers to achieve this, is this the correct route to take? Additionally, can I alter the sweeper while the bot is running to add servers to the cache?
21 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 6/28/2023 in #djs-questions
Checking permission to create channels/roles
15 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 6/26/2023 in #djs-questions
message.channel in DM's is null, is there a way to fill it?
As the title suggests the api doesn't send the channel in the payload for DM messages. Is there a way to fetch the channel so it isn't null in the message object?
22 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 6/10/2023 in #djs-questions
Differences between UserManager cache and GuildMemberManager cache
What's the difference between the UserManager cache and the GuildMemberManager cache? I understand the difference between a user and a GuildMember, but if the user cache is disabled does that mean guildMember.user wouldn't exist? or would it simply stop things like client.users? Ping on reply Additionally, cache only applies when you access things in the cache right? for instance, if a interaction request comes in and I have the UserManager cache disabled, I can still do intr.user. or intr.client.user correct?
20 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 2/25/2023 in #djs-questions
Cannot read properties of undefined (reading '_add')
28 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 2/12/2023 in #djs-questions
Are interactions effected by rate limits?
My dev bot responds to commands perfectly but production continuously gets the The application did not respond error message, I know it isn't an issue with the code since the dev bot works fine. My question is, if my bot gets rate limited does that prevent users from running new commands? If not, does anyone know of any reasons why commands wouldn't be responded to that I am overlooking?
23 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 1/31/2023 in #djs-questions
Is it possible to add entries to the audit log for command usage?
Essentially, I am switching my commands to be mostly ephemeral, however, with commands that change settings I want there to be a log of who is using those commands incase admins need to check. Is it possible to add an entry to the audit log for when a user uses a specific commands?
8 replies
DIAdiscord.js - Imagine an app
Created by Stqlth on 12/29/2022 in #djs-questions
Is it possible to have two collectors on the same message? Are there any examples?
Essentially I have a prompt for a user to edit a setting and they can click the "Enter response" button and get a TextInput modal, but I would also like a button on the prompt for another option. I would need a collector running to accept the text modal input if it is clicked and stop if the button is clicked and vice versa.
12 replies