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

Interaction Fail Event #89

Closed
Rxann opened this issue Sep 3, 2021 · 5 comments
Closed

Interaction Fail Event #89

Rxann opened this issue Sep 3, 2021 · 5 comments
Labels
feature request New feature request

Comments

@Rxann
Copy link

Rxann commented Sep 3, 2021

Summary

Add an event for when a discord Interaction fails!

What is the feature request for?

discord.ext.commands

The Problem

I am trying to solve the issue of when you use a discord component, there is a chance the interaction fails. I would like there to be an interaction failed event. This would help with giving information to the user that is triggering the interaction.

The Ideal Solution

Add an interaction fail event

The Current Solution

None

Additional Context

No response

@Rxann Rxann added the feature request New feature request label Sep 3, 2021
@Rxann Rxann changed the title Interaction Fail Interaction Fail Event Sep 3, 2021
@Rxann
Copy link
Author

Rxann commented Sep 3, 2021

If discord doesn't dispatch this event, sorry for opening this

@Middledot
Copy link
Member

Middledot commented Sep 5, 2021

Could you elaborate on this?

@Rxann
Copy link
Author

Rxann commented Sep 6, 2021

Yes,

Sometimes when you use a discord component, you get an error in red text that says "interaction failed". I would like if there could be an event for when this occurs!

@1oonie
Copy link
Contributor

1oonie commented Sep 6, 2021

The "Interaction failed" thing happens when a user interacts with a message component and you don't respond to the interaction within three seconds. If this is because of an error in your code for a button/select callback and you are using the discord.ui.View API then the on_error method of discord.ui.View will get called and it will get passed the error, the item that was interacted with and the interaction object.

@CodeWithSwastik
Copy link
Contributor

I'm assuming this answer is satisfactory. I'll close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

4 participants