aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-09 22:27:33 +0000
committerGravatar Joe Banks <[email protected]>2025-11-09 23:23:11 +0000
commit7d13d75a1445f3698ea3017b75427d985bc1394e (patch)
treee4f8a7eeca578e87cf5bf0f9cf62dcaa85b0cd21
parentUpdate source code modules so documentation can build (diff)
Move avatar to constant
-rw-r--r--pydis_core/exts/source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py
index b6f6561f..6766b542 100644
--- a/pydis_core/exts/source.py
+++ b/pydis_core/exts/source.py
@@ -12,6 +12,8 @@ if TYPE_CHECKING:
from pydis_core import BotBase as Bot
+GITHUB_AVATAR = "https://avatars1.githubusercontent.com/u/9919"
+
class _TagIdentifierStub(NamedTuple):
"""A minmally functioning stub representing a tag identifier."""
@@ -63,7 +65,7 @@ class SourceCode(commands.Cog, description="Displays information about the bot's
if not source_item:
embed = Embed(title=f"{self.bot.user.name}'s GitHub Repository")
embed.add_field(name="Repository", value=f"[Go to GitHub]({self.github_repo})")
- embed.set_thumbnail(url="https://avatars1.githubusercontent.com/u/9919")
+ embed.set_thumbnail(url=GITHUB_AVATAR)
await ctx.send(embed=embed)
return