Don't mark URL buttons as dispatchable
This commit is contained in:
parent
09f0ed1fba
commit
c811932ca7
@ -206,7 +206,7 @@ class Button(Item[V]):
|
|||||||
return self._underlying.to_dict()
|
return self._underlying.to_dict()
|
||||||
|
|
||||||
def is_dispatchable(self) -> bool:
|
def is_dispatchable(self) -> bool:
|
||||||
return True
|
return self.custom_id is not None
|
||||||
|
|
||||||
def refresh_component(self, button: ButtonComponent) -> None:
|
def refresh_component(self, button: ButtonComponent) -> None:
|
||||||
self._underlying = button
|
self._underlying = button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user