Skip to content

buttons

Discord UI Button Components for Tux Bot.

This module provides reusable Discord UI button components for various bot features, including xkcd comic links and GitHub repository links.

Classes:

Classes

XkcdButtons

Python
XkcdButtons(explain_url: str, webpage_url: str)

Bases: View

Button view for xkcd comic links.

Initialize xkcd buttons with explain and webpage links.

Parameters:

  • explain_url (str) –

    URL to the explainxkcd page for the comic.

  • webpage_url (str) –

    URL to the original xkcd webpage.

Functions

GithubButton

Python
GithubButton(url: str)

Bases: View

Button view for GitHub repository links.

Initialize GitHub button with repository URL.

Parameters:

  • url (str) –

    URL to the GitHub repository or issue.

Functions