Skip to content

Commit

Permalink
Added button
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarBlackhole committed Aug 12, 2023
1 parent ce4bbb8 commit 11b3a0c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cogs/velocidrone/velocidrone.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,28 @@ async def reset_velocidrone(
tracks: bool = False,
):
# TODO: MAKE THE REMOVAL BOYS
view = Removal()
await interaction.response.send_message(
content=f"Are you sure you want to reset Velocidrone?",
view=view,
)

message = await interaction.original_response()
view.message = message
timeout = await view.wait()

if timeout is True:
await message.edit(content=f"Timed out")
elif view.remove is True:
velocidrone_helper.reset_velocidrone(interaction.guild.id, whitelist, tracks)
await message.edit(
content=f"Reset Velocidrone.",
)
elif view.remove is False:
await message.edit(
content="Cancelled",
)

velocidrone_helper.reset_velocidrone(interaction.guild.id, whitelist, tracks)

await interaction.response.send_message(
Expand Down

0 comments on commit 11b3a0c

Please sign in to comment.