so here’s the thing. I’ve done a bot with discord.js, it was working well and then it crashed. The reason I get is “guild.channels.set(channel.id, channel); ^ TypeError: Cannot read property ‘id’ of undefined” And this error seems to be in node_modulesdiscord.jssrcclientClientDataManager.js:81 But I just don’t know what to do, the bot can’t log and I didn’t change the main file
Google Maps, info window not working with multiple markers after getting all markers in the bounds of window
I have multiple markers being add dynamically to a map. I need the map to focus on all markers displayed on the map. This will vary depending on input in search fields. I also need an info window for each marker. I had the info window working before I got the map to focus on all of the markers. Now
Close static backdrop modal on failed client-side validation when submitting
Before submitting a form the user clicks a button to open a “confirm” modal. When pressing “Apply” in the modal client-side validation fires and validates all fields. So far so good, but if validation fails the modal does not close and I cannot work out how. I have tried to attach an eventhandler to the submit button and then call
How to show “next” and “previous” buttons of a item in a array?
Im trying to use a array who contains 4 diferent maps. The first element of the array must be “sticked” and change the current element of the array by clicking next. The next button when it reaches to the last item of the array must be showed disabled. The previous button is disabled and when the next is clicked it
TypeError: this.ExportDataObject is not a function
I have a simple pdf file containing an embedded file (test.xml) I’m trying to add a JS to call it once the pdf file is opened (even with notification to user to accept the risk etc). I’ve read that to perform that, the JS that should be used is this: For some reason, it is not working. I checked the
Terminal hanging while running an asynchronous JS script to populate a Mongoose DB
I’m working on a personal project and am trying to understand the process logic that keeps my Node JS process from terminating after calling populateTransactions(). I think its because I need to close the DB (I’m not entirely clear on why), but when I do, the process terminates but the save() function of the model doesn’t complete and the DB
Loading text from a file in JavaScript
I have created a function to get text from a file using an url. The function uses $.get() of jQuery to fetch the file. The function works fine but the problem here is $.get() is asynchronous so the order of the output is not predictable i tried changing it to synchronous but it freezes the page completely i have tried
Get multiply key’value in object that have the same key
JSON data: I want loop that search for e.g. David’s texts and show it in HTML: I’m sorry for the bad expression but I don’t know how to explain this. Answer HTML Content JS Content
Hide and show images on hover
Hide and show images on hover. Class artists-main has artists names and class artists-image has images of the artists. It’s working fine but my code is lengthy. I have round about 50+ artists and page will be filled by jQuery code. I want to shorten it. Answer use same class name
Click to go next position in live animation
I created an animation that goes from right to left, and I am trying to add some jump on click of next box button. How can I apply it using JavaScript ? nextBox function should apply the jump from box1 to box2 and so on… ( for example ) codepen here Answer The following implementation should work since it does