Skip to content

Commit

Permalink
Bump nextcord to 2.6.0 (#110485)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdrob authored Feb 15, 2024
1 parent 06a21d4 commit dbca65d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/discord/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"integration_type": "service",
"iot_class": "cloud_push",
"loggers": ["discord"],
"requirements": ["nextcord==2.0.0a8"]
"requirements": ["nextcord==2.6.0"]
}
8 changes: 4 additions & 4 deletions homeassistant/components/discord/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ async def async_send_message(self, message: str, **kwargs: Any) -> None:
embeds: list[nextcord.Embed] = []
if ATTR_EMBED in data:
embedding = data[ATTR_EMBED]
title = embedding.get(ATTR_EMBED_TITLE) or nextcord.Embed.Empty
description = embedding.get(ATTR_EMBED_DESCRIPTION) or nextcord.Embed.Empty
color = embedding.get(ATTR_EMBED_COLOR) or nextcord.Embed.Empty
url = embedding.get(ATTR_EMBED_URL) or nextcord.Embed.Empty
title = embedding.get(ATTR_EMBED_TITLE)
description = embedding.get(ATTR_EMBED_DESCRIPTION)
color = embedding.get(ATTR_EMBED_COLOR)
url = embedding.get(ATTR_EMBED_URL)
fields = embedding.get(ATTR_EMBED_FIELDS) or []

if embedding:
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@ nexia==2.0.8
nextcloudmonitor==1.5.0

# homeassistant.components.discord
nextcord==2.0.0a8
nextcord==2.6.0

# homeassistant.components.nextdns
nextdns==2.1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ nexia==2.0.8
nextcloudmonitor==1.5.0

# homeassistant.components.discord
nextcord==2.0.0a8
nextcord==2.6.0

# homeassistant.components.nextdns
nextdns==2.1.0
Expand Down

0 comments on commit dbca65d

Please sign in to comment.