Doing a lot of overhaul to add reminders
This commit is contained in:
@@ -13,13 +13,13 @@ class ConsentView(View):
|
||||
async def confirm(self, interaction: discord.Interaction, button: Button):
|
||||
self.value = True
|
||||
await store_user_consent(interaction.user.id)
|
||||
await interaction.response.edit_message(content="Thank you for consenting to data storage!", view=None)
|
||||
await interaction.response.edit_message(content="Hey there! Thanks for opt-ing in to allowing me to store the data for your projects.", view=None)
|
||||
self.stop()
|
||||
|
||||
@discord.ui.button(label="Decline Data Storage", style=discord.ButtonStyle.grey)
|
||||
async def cancel(self, interaction: discord.Interaction, button: Button):
|
||||
self.value = False
|
||||
await interaction.response.edit_message(content="You have declined data storage. Since you have, You can't use my services.", view=None)
|
||||
await interaction.response.edit_message(content="Awe. It's ok. I won't store your data but this also means you won't be able to use my services. Bye, bye!", view=None)
|
||||
self.stop()
|
||||
|
||||
async def check_user_consent(user_id):
|
||||
|
Reference in New Issue
Block a user