Skip to content

Category: Questions

Discord.Intents(32767) vs [Intents.FLAGS.GUILDS]?

Do you know why the “message sent” is displayed only with the first solution? And not with this? (That is the example code on the discord.js documentation.) The bot is ready in both solutions, but I don’t get why only in the first one when I send a message in the server the bot detects it, m…

React Route not navigating

I have written below routes in App.js – I have another component – Items which has Card (Reactstrap). Each card is having a Link – Within Link tag , to attribute , I have mentioned – By this I am expecting , upon clicking of card , component – ItemDetails should get rendered. But…

Typescript concat two data types array in one

How do I concat two types array in one array using concat. If I initialize it with two data types it works fine but when I concat it. Typescript throws an error that both types are incompatible. Answer I think it has to do with the implementation of .concat() in Typescript. It is implemented as the type of th…

how to reset color grid?

I am creating a simple etch-a-sketch game. currently on hover it colors in black. I am trying to use a button to reset the colors back to white. However, i can’t get the button to function with an event listener, if i add an alert it displays the alert but nothing else. Please guide me and supply a docu…

How do I edit the popups bound to a polygon object

Currently, wherever I click on the map a popup appears with the country’s name. The country is determined by a geoJSON file that has the names and multi-polygon lnglat coordinates that sets the borders for each country to save me entering each one individually. However, I want each popup bound to a leaf…

Slow down scrolling page via click in javascript

I can’t find solution how to slow down scrolling on my example. When i click wherever on my picture there are link that scrolling down to text. How can i slow it down on my example? JDFiddleDemo HTML code: JS : I have function scrollInView but it looks like not works on my example. How can i do that on