Bump nextcord to 2.6.0 (#110485)

This commit is contained in:
Robert Hillis 2024-02-15 14:33:07 -05:00 committed by GitHub
parent 06a21d4ed9
commit dbca65dffb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -7,5 +7,5 @@
"integration_type": "service", "integration_type": "service",
"iot_class": "cloud_push", "iot_class": "cloud_push",
"loggers": ["discord"], "loggers": ["discord"],
"requirements": ["nextcord==2.0.0a8"] "requirements": ["nextcord==2.6.0"]
} }

View File

@ -129,10 +129,10 @@ class DiscordNotificationService(BaseNotificationService):
embeds: list[nextcord.Embed] = [] embeds: list[nextcord.Embed] = []
if ATTR_EMBED in data: if ATTR_EMBED in data:
embedding = data[ATTR_EMBED] embedding = data[ATTR_EMBED]
title = embedding.get(ATTR_EMBED_TITLE) or nextcord.Embed.Empty title = embedding.get(ATTR_EMBED_TITLE)
description = embedding.get(ATTR_EMBED_DESCRIPTION) or nextcord.Embed.Empty description = embedding.get(ATTR_EMBED_DESCRIPTION)
color = embedding.get(ATTR_EMBED_COLOR) or nextcord.Embed.Empty color = embedding.get(ATTR_EMBED_COLOR)
url = embedding.get(ATTR_EMBED_URL) or nextcord.Embed.Empty url = embedding.get(ATTR_EMBED_URL)
fields = embedding.get(ATTR_EMBED_FIELDS) or [] fields = embedding.get(ATTR_EMBED_FIELDS) or []
if embedding: if embedding:

View File

@ -1373,7 +1373,7 @@ nexia==2.0.8
nextcloudmonitor==1.5.0 nextcloudmonitor==1.5.0
# homeassistant.components.discord # homeassistant.components.discord
nextcord==2.0.0a8 nextcord==2.6.0
# homeassistant.components.nextdns # homeassistant.components.nextdns
nextdns==2.1.0 nextdns==2.1.0

View File

@ -1100,7 +1100,7 @@ nexia==2.0.8
nextcloudmonitor==1.5.0 nextcloudmonitor==1.5.0
# homeassistant.components.discord # homeassistant.components.discord
nextcord==2.0.0a8 nextcord==2.6.0
# homeassistant.components.nextdns # homeassistant.components.nextdns
nextdns==2.1.0 nextdns==2.1.0