Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 22, 2024
1 parent d8015b6 commit 5bec4a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,6 @@ async def send_message(
if voice_message:
payload["flags"] = payload.setdefault("flags", 0) + 8192


if view is not None:
payload["components"] = view.to_components()

Expand Down
12 changes: 7 additions & 5 deletions discord/webhook/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def create_interaction_response(
"duration_secs": file.duration_secs,
"waveform": file.waveform,
# TODO: Fix content_type
#"content_type": "audio/mp3",
# "content_type": "audio/mp3",
}
)
form.append(
Expand All @@ -524,8 +524,8 @@ def create_interaction_response(
"value": file.fp,
"filename": file.filename,
# TODO: Fix content_type
#"content_type": "application/octet-stream",
#"content_type": "audio/mp3",
# "content_type": "application/octet-stream",
# "content_type": "audio/mp3",
}
)
payload["flags"] = 1 << 13
Expand Down Expand Up @@ -666,7 +666,9 @@ def handle_message_parameters(
if username:
payload["username"] = username

flags = MessageFlags(suppress_embeds=suppress, ephemeral=ephemeral, is_voice_message=voice_message)
flags = MessageFlags(
suppress_embeds=suppress, ephemeral=ephemeral, is_voice_message=voice_message
)
payload["flags"] = flags.value

if applied_tags is not MISSING:
Expand Down Expand Up @@ -1804,7 +1806,7 @@ async def send(
applied_tags=applied_tags,
allowed_mentions=allowed_mentions,
previous_allowed_mentions=previous_mentions,
voice_message=voice_message
voice_message=voice_message,
)
adapter = async_context.get()
thread_id: int | None = None
Expand Down

0 comments on commit 5bec4a8

Please sign in to comment.