From 7d13d75a1445f3698ea3017b75427d985bc1394e Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Nov 2025 22:27:33 +0000 Subject: Move avatar to constant --- pydis_core/exts/source.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3