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:
PythonXkcdButtons(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.
PythonGithubButton(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.