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