Giter Site home page Giter Site logo

discord-typings's People

Contributors

arhsm avatar astreatss avatar bluenix2 avatar emretech avatar middledot avatar onerandomusername avatar plun1331 avatar silasary avatar tag-epic avatar theuntraceable avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discord-typings's Issues

Support for "extra fields"?

Discord often send "extra fields" in events over the gateway. An example of this can be seen here, I was unsure to if this was under the scope of this library.

Gateway dispatch event types

Although the union of all event types will most likely be set to Any for performance reasons of type checkers - which is why they were never created in the first place - it can still be useful when handling individual events to be able to specify their types.

For example, as I am implementing wumpy-cache the typings of individual events is useful for each processor of an event.

If complete support was the aim, there would need to be two new types for each event, but for now it is probably easiest to only provide the d type and encourage the use of the overarching DispatchEvent type for the complete WebSocket message received over the gateway. This code should be placed in gateway.py as it is still quite small, although the size of it will increase quite a lot after this change.

Can't import MessageActivityData from discord_typings

Hello, so I'm not sure what's going on, but whenever I try to import MessageActivityData from discord_typings, I get this import error:

ImportError: cannot import name 'MessageActivityData' from 'discord_typings' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/discord_typings/__init__.py)

`MODAL_SUBMIT` interaction data missing

Nothing major, just letting you know there's no typings for the MODAL_SUBMIT interaction that was added somewhat recently. There is InteractionModalResponseData, but that isn't quite the same.

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.