Don't mark URL buttons as dispatchable

This commit is contained in:
Rapptz 2021-05-31 22:57:44 -04:00
parent 09f0ed1fba
commit c811932ca7

View File

@ -206,7 +206,7 @@ class Button(Item[V]):
return self._underlying.to_dict()
def is_dispatchable(self) -> bool:
return True
return self.custom_id is not None
def refresh_component(self, button: ButtonComponent) -> None:
self._underlying = button