From 0d049bcd9ed752f15ed4c53948f5b52f84574b3e Mon Sep 17 00:00:00 2001 From: shtlrs Date: Thu, 30 Mar 2023 13:29:24 +0100 Subject: add type annotation for guild_id --- botstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'botstrap.py') diff --git a/botstrap.py b/botstrap.py index df783d1e4..79b296288 100644 --- a/botstrap.py +++ b/botstrap.py @@ -42,7 +42,7 @@ if not GUILD_ID: class DiscordClient(Client): """An HTTP client to communicate with Discord's APIs.""" - def __init__(self, guild_id): + def __init__(self, guild_id: int | str): super().__init__( base_url="https://discord.com/api/v10", headers={"Authorization": f"Bot {BOT_TOKEN}"}, -- cgit v1.2.3