Giter VIP home page Giter VIP logo

Comments (5)

Danktuary avatar Danktuary commented on August 23, 2024

From what I can tell, It seems like the Urban Dictionary API has changed a bit, or their site is having some issues.

At one point, if a definition had tags, it would be included in the API response. But that doesn't seem to be the case anymore (screenshot 1 - screenshot 2). Not all definitions have tags, but it's not showing the tags for tags that do either way. In addition to that, if you click on the tag, it'll take you to a page that's supposed to show you a list of all the definitions tagged with said tag, but right now, it'll tell you that there aren't any definitions tagged with said tag.

Since this is the first report of this I've seen of this, I'm not sure how long ago this started, if it's temporary, if it's a bug, or if it's intentional. I'll keep an eye out for any updates regarding this and decide on what to do afterwards. For the time being, I'd recommend just removing this line from the file:

.setFooter(`Tags: ${body.tags.join(', ')}`);

It should work fine after that.

from guide.

zaida04 avatar zaida04 commented on August 23, 2024

i tried your suggestion annnnnd
https://i.imgur.com/xRVTJx6.png

ill link to my code in a pastebin:
https://pastebin.com/E66q4zQr

from guide.

zaida04 avatar zaida04 commented on August 23, 2024

^above
im using a command handler, so thats why its in a module.exports wrapper and also why im not using large parts of your index.js file

from guide.

Danktuary avatar Danktuary commented on August 23, 2024

You receive that error because you're missing await before snekfetch.get(). Also be sure to add async before execute() { ....

from guide.

zaida04 avatar zaida04 commented on August 23, 2024

Aighty now it works, thanks.

from guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.