Noxxe
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Noxxe on 1/3/2024 in #djs-questions
How to retrieve original command interaction options from select menu interaction?
Hi people, I am trying to figure out if it's possible to retrieve CommandInteraction options from a StringSelectMenuInteraction.
This is mainly because within my bot project I have created several handlers to keep files and code organised, so therefore, I have Button Interactions, Modal Interactions, Command Interactions and Select Menu interaction stored in different files.
For example I have a slash command in one file and the code for it in said file, but then I have a interaction manager which will find the select menu with the interaction custom id and execute the code within that file.
As a result of this I am unable to keep select menu interaction and command interactions within the same file, so that's why I was wondering if it is possible to retrieve original command interaction option values from a secondary interaction such as a button or select.
Node Version:
v18.17.0
Discord.JS Version: v14.14.0
Many Thanks, Noxxe!4 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 1/24/2023 in #djs-questions
Problem creating new embed object from received embed object.
I am having trouble trying to create a new, editable embed object from an embed received from a button interaction, but the problem I am having is:
What is the correct way to create a new embed from an old embed object using something along the lines of
I had retrieved this from D.JS Docs, but I am still receiving errors such as
Any help would be greatly appreciated.
Version Information
NodeJS:
v18.12.11
Discord.JS: 14.7.1
__NPM: 8.19.2
9 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 1/9/2023 in #djs-questions
How would I set as the params for the ActivityType.Custom?
I have taken a look at both DJS Docs and also Discord API Types and I am stumped. Any help. 🙂
5 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 12/25/2022 in #djs-questions
Is there an event for when a user accepts a community gateway.
Is there an event that can be passed to my client when a user accepts a community guild gate, I have browsed through the docs but couldn't find anything.
[email protected]
6 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 12/21/2022 in #djs-questions
Introduce a timeout on Slash Commands
How would I go about adding a timeout to my slash commands that once the timeout is up, it removed any buttons or select menus from the components? Edit: How would I make it reset/cancel once a button is clicked. Any help would be greatly appreciated, even any guidance in the right direction?
9 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 12/1/2022 in #djs-questions
Passing an external arrays as command option choices.
8 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 9/23/2022 in #djs-questions
I am in a bit of a predicament!
I am building a general moderation, utility and ticket bot, and I am unsure what database system to use, I would ideally like one that's efficient, most reliable and also one that can handle large amounts of data at the same time. I know this might sound like a nooby question, but I want your guys honest opinion. i.e preferences, and experience.
Thanks in advance!
6 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 7/20/2022 in #djs-questions
Undefined when I try to pass objects to another file.
I am trying to figure out how to do embed pagination for my Discord bot and I getting stuck on this. gimme a min to explain everything.
4 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 7/18/2022 in #djs-questions
How would I go about making automated pagination
I would like to know how I would go about making a command where, it has pagination that are used using buttons and I am wondering how would make it automatically generate pages depending on how many results are returned. Any information or links to external resources would be greatly appreciated. DJS V14.0.1
3 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 7/18/2022 in #djs-questions
Trouble editing buttons in ActionRow
I have this external button command file, and when a button that is linked to that file is clicked it is supposed to grab the action row, edit the buttons on the action row and then after that it sends the action row with the edited buttons
30 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 7/14/2022 in #djs-questions
Grabbing an emoji from a guild on a different shard.
How would I go about grabbing an emoji from another guild that is on a different shard to the one where the command is being run? Thanks in advance. 🙂
9 replies
DIAdiscord.js - Imagine an app
•Created by Noxxe on 7/5/2022 in #djs-questions
Is there a way to create a custom logger for Discord.JS errors.
6 replies