Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Confirmation if User wanted to remove, unlink, or changing language #182

Open
nattadasu opened this issue Jun 20, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request proposal Suggestion for changes, new features, or improvements to a project

Comments

@nattadasu
Copy link
Owner

Similar to how /register, /* search, and /serversettings register, warns user if they really wanted to delete their data, unlink a platform, or changing to (unfamiliar) language.

Implementation example:

async def unregister(ctx):
  # ...
  await ctx.send(embed=embed,
                 components=interactions.Button(label="Confirm",
                                                style=interactions.ButtonColor.DANGER,
                                                custom_id="user_confirm_action"))

@interactions.ComponentListener("user_confirm_action")
async def user_confirms(ctx):
  # rest of logic
@nattadasu nattadasu self-assigned this Jun 20, 2023
@nattadasu nattadasu added enhancement New feature or request proposal Suggestion for changes, new features, or improvements to a project labels Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposal Suggestion for changes, new features, or improvements to a project
Projects
None yet
Development

No branches or pull requests

1 participant