Massicraft
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 12/23/2023 in #djs-questions
error getting the value of a embed's field.
In this ticket sistem when a ticket is closed it gets a specific value of the first field of the embed message that the bot sends when the ticket is opened.
Code: https://sourceb.in/jy4GvIfhrO
Code Error:
28 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 11/6/2023 in #djs-questions
How to show a modal after a reply?
In this command, the bot reply (ephemeral) to the slash command with a button, how to show a modal when this the user interact with this button?
(asking because i received the
interaction already replied
error using await interaction.showModal()
in the component file of the button.5 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 11/5/2023 in #djs-questions
Can't fetch interaction.reply
I'm trying to, after the interaction with a user select menu, to edit the reply but i receive the error :
DiscordAPIError[10015]: Unknown Webhook
slash command : https://sourceb.in/hCjYlv22Z6
component file : https://sourceb.in/55re83d6JY19 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 11/2/2023 in #djs-questions
How to update a message after the interaction with a component without using a component collector.
I have a log member sistem that sends a message with a webhook when a member joins the server. This message has a button attached to it, and when this button is activated a modal is shown. i want to update the message (more specifically only the label of the button) when this modal is submitted. How do i do this without using a component collector for the button? (i have a component handler)
13 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 11/1/2023 in #djs-questions
button doesn't show in the webhook message
in this log member https://sourceb.in/RnMm9Udsd8 when a user joins the server a webhook sends a message but even if there is no error, the button doesn't show.
5 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 10/25/2023 in #djs-questions
listening to buttons...
this is the handler for components that i use, but i want to be able to listen to buttons also only by the first argument in the array of their customId.split('_')[0].
handler https://sourceb.in/TjIgnV1V9u
interactionCreate event https://sourceb.in/4W7NWPrkV7
button module example https://sourceb.in/DIOCZiJsIF
message send command https://sourceb.in/CiELYf68Re
27 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 8/1/2023 in #djs-questions
How to know who pressed a button?
my command has a button, when someone press it i want to update the message and write here that him pressed the button
4 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/31/2023 in #djs-questions
Problem with buttons
when i first click prefix button it works, but when i click slash button it says failed interaction on discord and no error on console.
9 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/27/2023 in #djs-questions
How to import images in a embed message?
how to import images that are in my bot folder in a embed message? Node -v 18.16.0 discord.js 14.11.0
6 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/26/2023 in #djs-questions
How to make a slash command that disable/enables other slash commands?
Node -v 18.16.0
Discordjs v14.11.0
4 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/25/2023 in #djs-questions
How to make your bot run slash commands and prefix commands?
I configured my bot files according to the official discordjs guide, how can I do if I want it to also execute commands with a prefix?
commands
events
interactionCreate.js ready.jsindex.js deploy-commands.js config.json
4 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/25/2023 in #djs-questions
How to do an action in a slash command after a specific amount of time.
This command adds a role to a user, i want the bot to remove this role from the member after 2mins, how do i do?
4 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 7/25/2023 in #djs-questions
Number Option
How to add a number option to a slash command a how to get that number option after in a const.
5 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 6/26/2023 in #djs-questions
How to check if a member has a role with the role id?
instead of the role name
node 18.16.0
3 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 6/26/2023 in #djs-questions
How to limit a slash command to a specific role?
node = 18.16.0
discordjs = 14.11.0
40 replies
DIAdiscord.js - Imagine a bot
•Created by Massicraft on 6/26/2023 in #djs-questions
How to get the member that used the slash command?
node = 18.16.0
discordjs = 14.11.0
12 replies