From 76184b78428d9a44a15f87fa944afa98d55344ae Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 15 Feb 2022 18:52:01 +0800 Subject: [PATCH 1/3] chore: bump api version to v10 --- nextcord/core/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcord/core/http.py b/nextcord/core/http.py index 4606bf6..ac557b7 100644 --- a/nextcord/core/http.py +++ b/nextcord/core/http.py @@ -195,7 +195,7 @@ def __init__( *, max_retries: int = 5, ): - self.version = 9 + self.version = 10 self.api_base = f"https://discord.com/api/v{self.version}" self.state = state From 2e2b03bb6ea0826bee39894570a9db2e1b09345d Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 15 Feb 2022 20:27:46 +0800 Subject: [PATCH 2/3] feat: message intent --- nextcord/flags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nextcord/flags.py b/nextcord/flags.py index d1215f7..1da69a7 100644 --- a/nextcord/flags.py +++ b/nextcord/flags.py @@ -25,6 +25,7 @@ class Intents(IntFlags): "DIRECT_MESSAGES", "DIRECT_MESSAGE_REACTIONS", "DIRECT_MESSAGE_TYPING", + "MESSAGE_CONTENT", "GUILD_SCHEDULED_EVENTS", ) @@ -43,4 +44,5 @@ class Intents(IntFlags): DIRECT_MESSAGES = flag_value(1 << 12) DIRECT_MESSAGE_REACTIONS = flag_value(1 << 13) DIRECT_MESSAGE_TYPING = flag_value(1 << 14) + MESSAGE_CONTENT = flag_value(1 << 15) GUILD_SCHEDULED_EVENTS = flag_value(1 << 16) From fc0922386ad28d70fa7ec31e64861b541e260c3b Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 15 Feb 2022 21:35:47 +0800 Subject: [PATCH 3/3] chore: bump gateway to v10 --- nextcord/core/gateway/shard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcord/core/gateway/shard.py b/nextcord/core/gateway/shard.py index d4bdd4d..4e64ee1 100644 --- a/nextcord/core/gateway/shard.py +++ b/nextcord/core/gateway/shard.py @@ -64,7 +64,7 @@ def __init__( self.ready: Event = Event() # Internal things - self._gateway_url = "wss://gateway.discord.gg?v=9&compress=zlib-stream" + self._gateway_url = "wss://gateway.discord.gg?v=10&compress=zlib-stream" self._ws: Optional[ClientWebSocketResponse] = None self._state: State = state self._ratelimiter: TimesPer = TimesPer(120 - 3, 60) # 3 margin for heartbeats