Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

chore: bump api version to v10 #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nextcord/core/gateway/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nextcord/core/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions nextcord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Intents(IntFlags):
"DIRECT_MESSAGES",
"DIRECT_MESSAGE_REACTIONS",
"DIRECT_MESSAGE_TYPING",
"MESSAGE_CONTENT",
"GUILD_SCHEDULED_EVENTS",
)

Expand All @@ -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)