source

Pre-built cog to display source code links for commands and cogs.

class SourceCode(bot, github_repo)[source]

Bases: Cog

Pre-built cog to display source code links for commands and cogs (and if applicable, tags).

To use this cog, instantiate it with the bot instance and the base GitHub repository URL.

Parameters:
  • bot (pydis_core.BotBase) – The bot instance.

  • github_repo (str) – The base URL to the GitHub repository (e.g. https://github.com/python-discord/bot).

__init__(bot, github_repo)[source]