diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index 10ad1e8e018..16f30fbf051 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -94,9 +94,9 @@ class DiscordNotificationService(BaseNotificationService): for channelid in kwargs[ATTR_TARGET]: channelid = int(channelid) try: - channel = discord_bot.fetch_channel( + channel = await discord_bot.fetch_channel( channelid - ) or discord_bot.fetch_user(channelid) + ) or await discord_bot.fetch_user(channelid) except discord.NotFound: _LOGGER.warning("Channel not found for ID: %s", channelid) continue