@@ -9,6 +9,7 @@ Decorators
99.. autodecorator :: cmd
1010.. autodecorator :: group
1111.. autodecorator :: permit
12+ .. autodecorator :: callback
1213
1314Classes
1415-------
@@ -18,29 +19,55 @@ The Bot
1819
1920.. autoclass :: SlashBot
2021
22+ Base Classes
23+ ~~~~~~~~~~~~
24+
25+ .. autoclass :: BaseContext
26+ .. autoclass :: BaseCallback
27+ .. autoclass :: MessageComponent
28+
2129Interaction Context
2230~~~~~~~~~~~~~~~~~~~
2331
2432.. autoclass :: Context
33+ :show-inheritance:
2534.. autoclass :: Interaction
35+ .. autoclass :: ComponentContext
36+ :show-inheritance:
2637
2738Slash Commands
2839~~~~~~~~~~~~~~
2940
3041.. autoclass :: Command
42+ :show-inheritance:
3143.. autoclass :: Group
3244
45+
46+ Message Components
47+ ~~~~~~~~~~~~~~~~~~
48+
49+ .. autoclass :: ComponentCallback
50+ .. autoclass :: ActionRow
51+ :show-inheritance:
52+ .. autoclass :: Button
53+ :show-inheritance:
54+ .. autoclass :: SelectMenu
55+ :show-inheritance:
56+ .. autoclass :: SelectOption
57+
3358Data Classes
3459~~~~~~~~~~~~
3560
3661.. autoclass :: Option
3762.. autoclass :: Choice
3863
3964Miscellaneous
40- ~~~~~~~~~~~~~
65+ -------------
4166
4267.. autoclass :: SlashWarning
4368.. autoclass :: CommandPermissionsDict
69+ .. autoclass :: ComponentedMessage
70+ :show-inheritance:
4471
4572Partial Objects
4673~~~~~~~~~~~~~~~
@@ -62,14 +89,15 @@ information that discord.py prefers (most notably guild information).
6289 :show-inheritance:
6390
6491Enums
65- -----
92+ ~~~~~
6693
6794.. autoclass :: ApplicationCommandOptionType
6895.. autoclass :: ApplicationCommandPermissionType
6996.. autoclass :: InteractionCallbackType
97+ .. autoclass :: InteractionResponseType
7098.. autoclass :: CallbackFlags
71- .. autoclass :: MessageFlags
7299.. autoclass :: ChoiceEnum
100+ .. autoclass :: ButtonStyle
73101
74102Events
75103------
@@ -83,7 +111,7 @@ Events
83111 Triggered immediately after :meth: `SlashBot.register_commands ` to give an
84112 opportunity to register dynamic permissions in code before pushing to the
85113 API. If overriding using @:meth: `discord.Client.event `, you must await
86- :meth: `- SlashBot.register_permissions ` at the end of the event handler.
114+ :meth: `SlashBot.register_permissions ` at the end of the event handler.
87115 See ``/stop `` in ``demo_bot.py `` for an example.
88116
89117.. function :: on_before_slash_command_invoke(ctx: Context)
@@ -93,4 +121,17 @@ Events
93121.. function :: on_after_slash_command_invoke(ctx: Context)
94122
95123 Triggered immediately after a *successful * slash command invocation.
96- Failed invocations will trigger :func: `discord.on_command_error ` instead.
124+ Failed invocations will trigger :func: `discord.on_command_error ` instead.
125+
126+ .. function :: on_before_component_callback_invoke(ctx: ComponentContext)
127+
128+ Triggered immediately before a message component callback is invoked.
129+
130+ .. function :: on_after_component_callback_invoke(ctx: ComponentContext)
131+
132+ Triggered immediately after a successful callback invocation.
133+
134+ .. function :: on_component_callback_deregister(callback: ComponentCallback)
135+
136+ Triggered when a component callback is deregistered, either automatically
137+ as part of TTL expiry / use counting or manually.
0 commit comments