Skip to content
Open
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
3 changes: 2 additions & 1 deletion revolt/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
url = f"{self.api_info['features']['autumn']['url']}/{tag}"

headers = {
"User-Agent": "Revolt.py (https://github.com/revoltchat/revolt.py)"
"User-Agent": "Revolt.py (https://github.com/revoltchat/revolt.py)",
self.auth_header: self.token
}

form = aiohttp.FormData()
Expand Down Expand Up @@ -159,7 +160,7 @@
return self.request("GET", f"/channels/{channel}/messages/{message}")

@overload
def fetch_messages(

Check failure on line 163 in revolt/http.py

View workflow job for this annotation

GitHub Actions / pyright-type-checking (3.9)

Overload 1 for "fetch_messages" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)

Check failure on line 163 in revolt/http.py

View workflow job for this annotation

GitHub Actions / pyright-type-checking (3.10)

Overload 1 for "fetch_messages" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)
self,
channel: str,
sort: SortType,
Expand Down Expand Up @@ -215,7 +216,7 @@
return self.request("GET", f"/channels/{channel}/messages", params=json)

@overload
def search_messages(

Check failure on line 219 in revolt/http.py

View workflow job for this annotation

GitHub Actions / pyright-type-checking (3.9)

Overload 1 for "search_messages" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)

Check failure on line 219 in revolt/http.py

View workflow job for this annotation

GitHub Actions / pyright-type-checking (3.10)

Overload 1 for "search_messages" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)
self,
channel: str,
query: str,
Expand Down
Loading