diff options
| author | 2023-08-23 10:31:24 +0100 | |
|---|---|---|
| committer | 2023-08-23 10:31:24 +0100 | |
| commit | 6ebc2806b1b2737c27c090da324d85577ea67fb6 (patch) | |
| tree | 1fb65b1dd1c8185bab4874dfc8fe5e272f20de3d /bot/exts/events/hacktoberfest/hacktoberstats.py | |
| parent | Handle snakes without images (diff) | |
| parent | Corrected attribute name to fetch github url in extensions.py (#1348) (diff) | |
Merge branch 'main' into snakes-cleanup
Diffstat (limited to 'bot/exts/events/hacktoberfest/hacktoberstats.py')
| -rw-r--r-- | bot/exts/events/hacktoberfest/hacktoberstats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/events/hacktoberfest/hacktoberstats.py b/bot/exts/events/hacktoberfest/hacktoberstats.py index c7fd3601..04dc4aae 100644 --- a/bot/exts/events/hacktoberfest/hacktoberstats.py +++ b/bot/exts/events/hacktoberfest/hacktoberstats.py @@ -43,7 +43,7 @@ class HacktoberStats(commands.Cog): @in_month(Month.SEPTEMBER, Month.OCTOBER, Month.NOVEMBER) @commands.group(name="hacktoberstats", aliases=("hackstats",), invoke_without_command=True) - async def hacktoberstats_group(self, ctx: commands.Context, github_username: str = None) -> None: + async def hacktoberstats_group(self, ctx: commands.Context, github_username: str | None = None) -> None: """ Display an embed for a user's Hacktoberfest contributions. @@ -70,7 +70,7 @@ class HacktoberStats(commands.Cog): @in_month(Month.SEPTEMBER, Month.OCTOBER, Month.NOVEMBER) @hacktoberstats_group.command(name="link") - async def link_user(self, ctx: commands.Context, github_username: str = None) -> None: + async def link_user(self, ctx: commands.Context, github_username: str | None = None) -> None: """ Link the invoking user's Github github_username to their Discord ID. |