mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 23:07:09 +00:00
Edit docstring
This commit is contained in:
parent
887b53b794
commit
c1f3ce78e1
@ -45,7 +45,7 @@ class DiscordNotificationService(BaseNotificationService):
|
|||||||
@discord_bot.event
|
@discord_bot.event
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def on_ready():
|
def on_ready():
|
||||||
"""sends the messages when the bot is ready"""
|
"""Send the messages when the bot is ready."""
|
||||||
for channelid in kwargs[ATTR_TARGET]:
|
for channelid in kwargs[ATTR_TARGET]:
|
||||||
channel = discord.Object(id=channelid)
|
channel = discord.Object(id=channelid)
|
||||||
yield from discord_bot.send_message(channel, message)
|
yield from discord_bot.send_message(channel, message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user