Skip to content
Merged
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
1 change: 1 addition & 0 deletions interactions/api/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def lookup(code: int) -> str:
11: "Error creating your command.",
12: "Invalid set of arguments specified.",
13: "No HTTPClient set!",
14: "Fatal conflict between object and attempted action.",
# HTTP errors
400: "Bad Request. The request was improperly formatted, or the server couldn't understand it.",
401: "Not authorized. Double check your token to see if it's valid.",
Expand Down
2 changes: 1 addition & 1 deletion interactions/api/http/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ async def edit_tag(
Route("PUT", f"/channels/{channel_id}/tags/{tag_id}"), json=_dct
)

async def delete_tag(self, channel_id: int, tag_id: int) -> dict:
async def delete_tag(self, channel_id: int, tag_id: int) -> None: # wha?
"""
Delete a forum tag.

Expand Down
2 changes: 1 addition & 1 deletion interactions/api/http/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async def create_thread_in_forum(
payload["applied_tags"] = applied_tags

data = None
if files is not MISSING and len(files) > 0:
if files is not MISSING and files and len(files) > 0: # edge case `None`

data = MultipartWriter("form-data")
part = data.append_json(payload)
Expand Down
Loading