diff options
author | 2020-05-19 01:30:33 +0100 | |
---|---|---|
committer | 2020-05-19 01:30:33 +0100 | |
commit | bd4b439bb7f4abb6b22ad6e0d33bbe9203317475 (patch) | |
tree | 05f97d408dc94258bc97e5fba84db0edca09df13 | |
parent | Merge pull request #941 from ks129/reddit-publish (diff) |
[bug] Adjustment to changes in #941, return message sent by webhook so publish can take place
-rw-r--r-- | bot/cogs/reddit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/reddit.py b/bot/cogs/reddit.py index a300cfe0f..3b77538a0 100644 --- a/bot/cogs/reddit.py +++ b/bot/cogs/reddit.py @@ -218,7 +218,7 @@ class Reddit(Cog): for subreddit in RedditConfig.subreddits: top_posts = await self.get_top_posts(subreddit=subreddit, time="day") - message = await self.webhook.send(username=f"{subreddit} Top Daily Posts", embed=top_posts) + message = await self.webhook.send(username=f"{subreddit} Top Daily Posts", embed=top_posts, wait=True) if message.channel.is_news(): await message.publish() |