From 078959807e15810ae14e0864c2c50b79ceee25ae Mon Sep 17 00:00:00 2001 From: Conatum Date: Wed, 27 Apr 2022 11:17:49 +0300 Subject: [PATCH] fix (interactions): Correctly support disabled. --- bot/meta/interactions/components.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/meta/interactions/components.py b/bot/meta/interactions/components.py index d674d2ff..ad2bdef9 100644 --- a/bot/meta/interactions/components.py +++ b/bot/meta/interactions/components.py @@ -96,6 +96,8 @@ class Button(MessageComponent, AwaitableComponent): if self.emoji is not None: # TODO: This only supports PartialEmoji, not Emoji data['emoji'] = self.emoji.to_dict() + if self.disabled: + data['disabled'] = self.disabled return data