diff options
Diffstat (limited to 'question_of_the_day')
-rw-r--r-- | question_of_the_day/question_of_the_day.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/question_of_the_day/question_of_the_day.py b/question_of_the_day/question_of_the_day.py index 3f7971e..391352b 100644 --- a/question_of_the_day/question_of_the_day.py +++ b/question_of_the_day/question_of_the_day.py @@ -399,10 +399,10 @@ class QuestionOfTheDay(commands.Cog): channel = await guild.fetch_channel( latest_qotd_message_info["channel_id"] ) - old_message = await channel.fetch_message( - latest_qotd_message_info["message_id"] - ) try: + old_message = await channel.fetch_message( + latest_qotd_message_info["message_id"] + ) await old_message.unpin(reason="Unpinning old question of the day.") except (discord.Forbidden, discord.NotFound): pass |