Skip to content

Commit

Permalink
[Discord] Improve twitter purge command clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Nov 16, 2023
1 parent 137634d commit 66e60fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Discord/cogs/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,9 @@ async def purge(self, ctx):
channel = ctx.bot.get_channel(record["channel_id"]) or (
await ctx.bot.fetch_channel(record["channel_id"])
)
await channel.send(notice)
except discord.Forbidden:
await ctx.bot.last_resort_notices_channel.send(notice)
else:
try:
await channel.send(notice)
except discord.Forbidden:
await ctx.bot.last_resort_notices_channel.send(notice)

await ctx.embed_reply("Purge complete")

Expand Down

0 comments on commit 66e60fb

Please sign in to comment.