Giter Site home page Giter Site logo

wharf's Introduction

Deprecation Notice

Wharf is now deprecated. I no longer will be working on this library and it might be going fully out of date soon because of the pomelo (username changes) updates with discord.
As of 5/13/2023, this library does still work as to my knowledge but i'd say use another api wrapper such a Hikari or Discord.py.
You may create a fork of this if you want just as people did with discord.py when it was deprecated back in 2021.

Wharf

An minimal discord api wrapper that allows you to do what you want to do
If you need any support or want to give us suggestions, please do so by joining out Support Server

Aint this just another discord.py or hikari clone?

I see how you can think that but no. wharf was made entirely from scratch but the libraries do share stylistic choices. wharf is meant to be as minimal as possible whilst are being beginner-friendly. basically a mix of hikari and discord.py into one brand new made from scratch library!

What events are there/Whats their names?

You can find a list of all gateway events at The discord docs!
we use the gateway event names discord gives us in the docs such as message_create, guild_create, or interaction_create. We support all events but some of the events use the raw json from the gateway instead of proper models for now.

wharf's People

Contributors

codebyaidan avatar pre-commit-ci[bot] avatar sawshadev avatar theuntraceable avatar whoisconch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wharf's Issues

Unable to have multiple events

Hey, I saw this repo in TCR and it was interesting, it took a nice approach to wrapping the Discord API and gateway. I was skimming through the code out of curiosity (and so I could see what I could help with), and I found this line. From what I can see without any testing is that this function is called in the subscribe function, and it blindly resets the events to a list. If I've understood that correctly, what you should do is use a defaultdict, with list as the argument. This means you don't need to do none of the if not self.events.get(event_name), and can go straight to the self.events[event_name].append. I hope this helps you. Keep up the solid work ๐Ÿ‘

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.