Skip to content
Advertisement

Discord.js cannot read property id of undefined

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

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

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

Advertisement