mirror of
https://github.com/Paillat-dev/pycord-rest.git
synced 2026-03-02 23:24:54 +00:00
Compare commits
2 Commits
renovate/l
...
370ffc62d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
370ffc62d6 | ||
|
|
36fb8528ad |
@@ -7,7 +7,7 @@ ci:
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
exclude: \.(po|pot|yml|yaml)$
|
||||
@@ -21,7 +21,7 @@ repos:
|
||||
exclude: \.(po|pot|yml|yaml)$
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.11.11
|
||||
rev: v0.15.1
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
@@ -29,6 +29,6 @@ repos:
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
- repo: https://github.com/bhundven/copywrite # waiting for https://github.com/hashicorp/copywrite/pull/120 to be merged
|
||||
rev: 937f17f09c46992447dfa8977bb96eda512588c4
|
||||
rev: 9d021bf61a094a5eac6ae3084ceed2dda4700a73
|
||||
hooks:
|
||||
- id: add-headers
|
||||
|
||||
@@ -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(".")[0] + "==").decode("utf-8"))
|
||||
self._connection.application_id = int(base64.b64decode(token.split(".", maxsplit=1)[0] + "==").decode("utf-8"))
|
||||
try:
|
||||
self.dispatch("connect")
|
||||
await server.serve()
|
||||
|
||||
Reference in New Issue
Block a user