Skip to content

Category: Questions

React how to select how much I have scrolled below

I am trying to select some value preferably px of how much I have scrolled down so I can conditionally hide the element. Something like total height – scrolled height would be ideal Problem I’m having …

How to send a message to a Channel on all Servers

I would like to send a message to all channels that are in all servers that are called “labycheck-shop” at 12 midnight. I have already tried this but it did not work: Answer This feature can turn out to be spammy on the Discord API, so you might want to keep that in mind I believe that you might b…

Group array to an object in javascript

Hello apologies if this has been asked before but I can’t search for the right term to find something useful. Suppose if I had an array of how would I change this to an object like so? Answer Edit – just noticed the format of your data – map reduce may not work for you, but still a similar p…

Find/Replace object in an array and add a key Javascript

I am trying to add a key to an Object of Array as isActive: true, and then I want to find the object in the actual array with the same label as that of selectedFilterList and replace it in this.bindingData else add isActive: false I have tried this which is working but i don’t think so its a best approa…