event_decos#

class wyvern.api.event_decos.ImplementsEventDecos[source]#

Interface for event decorators in GatewayBot, this class is purely for the bot class to inherit from.

Example

@bot.on_started()
async def started(event: wyvern.StartedEvent) -> None:
    bot.logger.info(f"Logged in as {event.user.tag}")
on_started(**kwargs: Any) Callable[[types.EventListenerCallbackT], handler.EventListener][source]#

Used to create a StartedEvent listener.

Returns:

The listener that was created.

Return type:

EventListener

on_starting(**kwargs: Any) Callable[[types.EventListenerCallbackT], handler.EventListener][source]#

Used to create a StartingEvent listener.

Returns:

The listener that was created.

Return type:

EventListener