diff options
author | 2023-03-30 13:29:24 +0100 | |
---|---|---|
committer | 2023-03-30 13:29:24 +0100 | |
commit | 0d049bcd9ed752f15ed4c53948f5b52f84574b3e (patch) | |
tree | 7e1adc1d9a3588f5aa3d112e90848bca2c5285fe | |
parent | move all methods under the DiscordClient (diff) |
add type annotation for guild_id
-rw-r--r-- | botstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
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}"}, |