Events

Overview

Bolt can invoke a handler for any websocket event from Discord.

Example

from bolt import subscriber
from bolt.discord import Events
‚Äč
@subscriber(Events.GUILD_MEMBER_UPDATE)
def on_guild_member_update(self, event):
# handle stuff

Reference