t̴humper
DIAdiscord.js - Imagine an app
•Created by t̴humper on 8/14/2024 in #djs-questions
Database system recommendations?
Does anyone have a favorite database system they use for their bots? I would love a recommendation, preferably something that's free.
It only needs to hold enough data for one server for free, but it would be great to have something that could scale and is easily readable.
I've used Firebase in the past.
13 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 8/3/2024 in #djs-questions
Possible to stream video of webpage through Discord.js bot?
Hello! I'd like to create a bot that can stream a live view of an HTML5 canvas during a call. Is this at all possible? If so, can anyone point me in the right direction? Or is it only possible through self-botting?
Thank you in advance!
11 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 12/6/2023 in #djs-questions
Editing a pinned message?
Hello! I have a reply to an interaction that I'd like to edit at a later time.
The ID of the reply is stored in my database, and then the message is pinned to save it:
At a later time in my code when a button is pressed, I want this message to update. So I fetch the pinned messages:
But at this point, I'm stuck. Is there a way to access the message by ID here so that I can edit it?
The following doesn't seem to work:
7 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 12/3/2023 in #djs-questions
How to send a followUp after deferReply() and editReply()?
I have an
interaction.deferReply()
that is edited later with interaction.editReply()
.
I'd like to also send a followUp
(second message) with some buttons after editing the first message. Is there a way to do that?
My code looks like this right now:
7 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 1/11/2023 in #djs-questions
Get the second message in a channel?
How might I get the message object of the second or third message in a channel?
6 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 12/7/2022 in #djs-questions
Unknown interaction?
7 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 11/12/2022 in #djs-questions
Trying to get the emoji from a forum tag
I'm trying to get the emoji from a forum tag, but at the moment it's returning as null. At some point I think I was able to use tag.emoji.name -- did that change?
14 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 9/24/2022 in #djs-questions
Can you accept a thread channel as an option in a slash command?
Can you use
const channel = interaction.options.getChannel('destination');
with a thread channel?9 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 9/21/2022 in #djs-questions
Create new forum post?
Are there functions for creating /deleting a forum post?
Also: is there a way to get the name of a tag from a forum post?
14 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 9/20/2022 in #djs-questions
Making interactions persistent after bot restart
I'm using discord.js 14.3, node v18.9.0.
I'd like to create a ticketing system where the user can click a button to open a ticket. Ideally, I'd like to have the embed with those buttons pinned in a channel, and for that message to stay there indefinitely. Is there a way to make those buttons still work after the bot is restarted?
At the moment, it seems like if the embed is interacted with after the bot is restarted/goes offline, the interaction fails.
15 replies
DIAdiscord.js - Imagine an app
•Created by t̴humper on 9/18/2022 in #djs-questions
Is there a maximum number of select options?
For select menu interactions, is there a maximum number of options that can be displayed?
4 replies