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

VoteBot: Cannot close a poll after message deletion #86

Closed
Z8MB1E opened this issue Feb 26, 2022 · 3 comments
Closed

VoteBot: Cannot close a poll after message deletion #86

Z8MB1E opened this issue Feb 26, 2022 · 3 comments
Labels
Votebot Something related to the votebot part of the project.

Comments

@Z8MB1E
Copy link

Z8MB1E commented Feb 26, 2022

It seems that you cannot close a poll in the event that its containing message was deleted. Is there a fix for this? If not, maybe a fix could be implemented wherein attempting to close a poll with a message ID that doesn't exist will simply remove the poll from the list, or something similar?

@DRSchlaubi
Copy link
Owner

The problem is, the retrieval of the message happens before any command logic runs, so the close command has little to change

@NyCodeGHG NyCodeGHG added the Votebot Something related to the votebot part of the project. label Feb 26, 2022
@Z8MB1E
Copy link
Author

Z8MB1E commented Feb 26, 2022

The problem is, the retrieval of the message happens before any command logic runs, so the close command has little to change

Is there a way to remove it from the autocompletion list of the slash command /close then?

@DRSchlaubi
Copy link
Owner

The auto completion just suggests message links based on what ever is stored in the database, neither does this link need to link to an existing message nor do you need to even select something from autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Votebot Something related to the votebot part of the project.
Projects
None yet
Development

No branches or pull requests

3 participants