Skip to content

Commit dd05817

Browse files
committed
✨ Add components support to gears
1 parent c692720 commit dd05817

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

discord/gears/gear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class StaticAttributedEventCallback(AttributedEventCallback, Protocol):
6161
EventCallback: TypeAlias = Callable[[E], Awaitable[None]]
6262

6363

64-
class Gear(ModalGearMixin, GearBase):
64+
class Gear(ModalGearMixin, ComponentGearMixin, GearBase):
6565
"""A gear is a modular component that can listen to and handle events.
6666
6767
You can subclass this class to create your own gears and attach them to your bot or other gears.

discord/interactions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"Interaction",
6666
"ModalInteraction",
6767
"ComponentInteraction",
68+
"ApplicationCommandInteraction",
6869
"InteractionMessage",
6970
"InteractionResponse",
7071
"InteractionMetadata",

0 commit comments

Comments
 (0)