Skip to content

Discord music bot: prefix not defined

I wanted to make a music discord bot and I’ve been having trouble with it for a while. and I keep getting an error and I got this code from CodeLyon’s video called “Make Your Own Discord Bot | Music Bot (Play, Skip, Stop Commands)” I keep getting the same error when I try it: Reference…

Dynamically select which array to run through funciton

I am trying to make a jQuery function dynamically decide which array gets run through it based on a button click. Ideally, this is how it would work: User clicks one of the “View More …” buttons. The program loads the next 3 images of that specific category (Sports, Concerts, etc.). Below is…

Dragging not working for react-use-gesture

For some reason, I just cannot get the most basic example of react-use-gesture to work. What I am trying to do is just have a square follow my mouse location when you drag it. I copy-pasted the example from their documentation multiple times (https://github.com/pmndrs/react-use-gesture) and still cannot get i…

Php file won’t load ajax request

I try query my database from javascript, using ajax request to my php file. This is my code: So I included jquery file into my folder, so that I can access it as shown above. Now my trainPassFrequency.js look like this: where trainfrequency.php only returns (echo) output of the sql query. When I run this code…