nextcore icon indicating copy to clipboard operation
nextcore copied to clipboard

Dispatcher rework

Open TAG-Epic opened this issue 2 years ago • 1 comments

Default logic

This will allow things like ShardManager to log a error only if it's not handled

Proposed interface

handled = dispatcher.dispatch("hello")

Allow streaming events

source: https://davfsa.github.io/hikari-docs/stable/hikari/impl/bot.html#GatewayBot.stream This would basically be just a upgraded version of the .wait_for interface.

Allow .wait_for's without a check

As seen in https://docs.nextcord.gay/gateway#basic-ping-pong-example this has been used quite a bit and become a issue that should be fixed.

TAG-Epic avatar Jul 08 '22 23:07 TAG-Epic