mirror of
https://github.com/Paillat-dev/pycord-rest.git
synced 2026-03-03 07:34:54 +00:00
Compare commits
1 Commits
370ffc62d6
...
pre-commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
794a642141 |
@@ -21,7 +21,7 @@ repos:
|
||||
exclude: \.(po|pot|yml|yaml)$
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.15.1
|
||||
rev: v0.15.4
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
|
||||
@@ -271,7 +271,7 @@ class App(discord.Bot):
|
||||
uvicorn_options["server_header"] = uvicorn_options.get("server_header", False)
|
||||
config = self._UvicornConfig(self._app, **uvicorn_options)
|
||||
server = self._UvicornServer(config)
|
||||
self._connection.application_id = int(base64.b64decode(token.split(".", maxsplit=1)[0] + "==").decode("utf-8"))
|
||||
self._connection.application_id = int(base64.b64decode(token.split(".")[0] + "==").decode("utf-8"))
|
||||
try:
|
||||
self.dispatch("connect")
|
||||
await server.serve()
|
||||
|
||||
Reference in New Issue
Block a user