NovaKevin
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 10/6/2024 in #djs-questions
Entitlement Update event not received after cancelling subscription
I'm currently testing subscriptions to my bot, and when I create a subscription an ENTITLEMENT_CREATE event is fired, I can see the details of the entitlement, and it is added to discord.js entitlement cache.
However when I cancel the subscription via the "Subscriptions" settings, discord shows the subscription is cancelled, however no ENTITLEMENT_UPDATE event is recieved. According to discord.js the entitlement has no end date, even though discord documentation says there should be an end date set once a subscription is cancelled.
Even if I restart the bot and re-fetch entitlements into cache, the entitlement is still active with no end date.
Using discord.js 14.16.3
2 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 7/3/2023 in #djs-questions
Ban specific users from using my bot?
Is there a way to ban specific users from using my bot? I don't want to ban them from the server, just if they were abusing my bots commands or something, could I ban them from my bot?
4 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 6/26/2023 in #djs-questions
Emojis in slash command "choices" not appearing
14 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 4/21/2023 in #djs-questions
Can bots have server-specific profile pictures?
I know that users can set server-specific profile pictures, but can bots also do this and is this functionality available in discord.js?
3 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 11/20/2022 in #djs-questions
Attachments - Proxy URL vs. URL?
I'm taking in an image the user uploads via an attachment and want to display it in an embed. I saw that there are both
url
and proxyURL
properties. Does it matter which I use? In what cases would one be preferred over the other?3 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 9/3/2022 in #djs-questions
Autocomplete - don't start until X characters have been entered?
Is there a way to prevent the autocomplete from returning values until at least X length of characters have been provided? I am allowing the user to search through many items, and it seems silly to start populating the results when 0 characters have been entered.
Discord.js v13.10.3
Node.js v18.6.0
4 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 8/24/2022 in #djs-questions
Silently respond to interaction?
Is it possible to silently respond to an interaction? I have a setup process and want to allow users to click "Cancel" to stop the process without having to send another message back to the user. Can I send back an empty response somehow? Or is that not possible?
15 replies
DIAdiscord.js - Imagine an app
•Created by NovaKevin on 7/18/2022 in #djs-questions
Constants for max pins | threads?
Does discord.js have a constants file somewhere for the max number of pins for a channel or the max number of threads in a guild?
6 replies