Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
2 votes
0 answers
21 views

Interactive graph in D3.js - problems with adding/flagging elements

I wrote the code for making an interactive graph which have some major problems. The idea is that first, I want to display three clickable SVGs. After clicking on one of them, the two unclicked SVGs ...
kowalskael's user avatar
0 votes
0 answers
52 views

Discord.js | Why buttons just can be used once?

I made a ticket system but buttons inside the ticket just can be used once. Here is how it should work: Open the ticket Send message with button (Lock Ticket) in the ticket just opened When Lock ...
KaizOffical's user avatar
1 vote
1 answer
406 views

Discord.js: bot is unable to handle multiple commands with buttons correctly

I was creating a new help command for my discord bot when I encountered this problem: When two or more Help Commands are called, only the last one would handle the button interactions correctly, and ...
TommyYOyoyo's user avatar
0 votes
1 answer
823 views

InteractionAlreadyReplied Error while sending a Modal, discord.js v14

I am developing a bot using discord.js v14, so I was making a modal command but I found an error that I can't solve. Here is the code that I am using. modal.js: const BOT = require("../../../...
kiritxyz's user avatar
0 votes
1 answer
291 views

Way to detect which component is clicked

In my jsx page I have two identical search input components used to filter both company and users data. Is there a way to detect which button has been pressed using React? <SearchInput label={'...
beginnerspirit's user avatar
1 vote
0 answers
268 views

Continuing the loop when the button is pressed (discord.js)

I am trying to make an RPG music bot in discord and I am implementing a battle system when the user presses a button, the battle would continue in the next phase and turn and will end at a certain ...
Ren's user avatar
  • 27
1 vote
0 answers
254 views

Audio.play() works with mouse click events but not with touch events: "DOMException: play() failed because the user didn't interact with the document"

I'm making a game with vanilla JavaScript and HTML5 Canvas. I have a "Touch to start" screen, and I need music playing right after the user clicks on it. The "click" listener works ...
David M. Casas's user avatar
2 votes
1 answer
72 views

.on("click") only works once for each dot

I'm new to both d3 and javascript, and am clearly suffering from misconceptions around join() and event handling. The application is a demonstration of a salary increase program based on a two-level ...
George McBane's user avatar
1 vote
1 answer
11k views

Discord.js v14 how to handle button interactions

I'm trying to make a help command for my discord bot with menus and buttons, but I encountered multiple problems: I don't know how to handle the "Interaction failed" text showing up when I ...
TommyYOyoyo's user avatar
0 votes
1 answer
3k views

DiscordAPIError: Invalid Form Body - Discord.js Embed

Hey i was trying to make a url button to my embed when it sent on slashCommand, but when I tried to put the button and use the command I got an error of : DiscordAPIError: Invalid Form Body I don't ...
SadSenpai's user avatar
  • 119
0 votes
1 answer
683 views

Select interaction with swipe in Openlayers

I'm using swipe control https://viglino.github.io/ol-ext/examples/control/map.control.swipe.html to show two layers on the map: right and left side. [EDIT] I have two iterations selected, one for each ...
user12538529's user avatar
-1 votes
1 answer
1k views

Discord.JS Slash Commands === TypeError: Cannot read properties of undefined (reading 'user')

I am currently having trouble with my slash commands. I am trying to get it so that in the author spot of the embed, it posts the author's Name & tag, and their profile. For some reason I keep ...
Ethan Stokes's user avatar
1 vote
0 answers
337 views

Emote shown as plain text instead of emote itself

I made a command as "text" command, and wanted to also make a slash command using code I made, but even tho it's the same code, emoji works for "text" command, and is shown as ...
MegaMix_Craft's user avatar
0 votes
4 answers
1k views

How to remove a class with delay after a button is pressed?

I have a full page navigation on my website. To make sure the page can't scroll when the navigation is opened, the body get's the 'no-scroll' class with overflow hidden. This also removes the ...
Daniel's user avatar
  • 1
1 vote
0 answers
25 views

How to get program to correctly detect where mouse is in relation to the center point of a circle

I'm creating a small demo/game in which the player moves around and interacts with objects by clicking them. let cnt = 0; var canvas = document.querySelector("canvas"); const ctx = canvas....
Saint's user avatar
  • 49

15 30 50 per page
1
2 3 4 5