aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-30 13:29:24 +0100
committerGravatar shtlrs <[email protected]>2023-03-30 13:29:24 +0100
commit0d049bcd9ed752f15ed4c53948f5b52f84574b3e (patch)
tree7e1adc1d9a3588f5aa3d112e90848bca2c5285fe
parentmove all methods under the DiscordClient (diff)
add type annotation for guild_id
-rw-r--r--botstrap.py2
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}"},