Skip to content

discohook.common ​

Classes ​

Component ​

discohook.common.Component

Represents a discord component.

Arguments ​

  • type (ComponentType | None): Type of the component.
  • custom_id (str | None): Custom ID of the component.

Inheritance ​

  • discohook.common.Interactable

Interactable ​

discohook.common.Interactable

Method Index ​

Methods ​

check ​

python
check(self)

Decorator that adds a check to a specific command or component.

error_handler ​

python
error_handler(self)

Decorator that adds an error handler to a specific command or component.

to_dict ​

python
to_dict(self)

Convert the component to a dict. For internal use only.