Skip to content

Commit

Permalink
Remove ability to delete onboarding message
Browse files Browse the repository at this point in the history
Since it's now in the DMs, we don't need to delete it.
  • Loading branch information
MasterJ93 committed Nov 27, 2023
1 parent ef03a08 commit c4d1ee6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions views/beginner_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@ async def send_message_and_end_onboarding(
delete_after=60.0
)

# We need to search for the original message so we can delete it.
async for message in self.alliance_general.history(
limit=200,
oldest_first=True):
if message.author.bot is False:
continue

if message.mentions[0].id == self.user_id:
await message.delete()
break

class ClanInviteInterestView(discord.ui.View):
"""
Contains a view for admins to decide whether to
Expand Down

0 comments on commit c4d1ee6

Please sign in to comment.