Skip to content

Conversation

@Plerx2493
Copy link
Member

Make sure you familiarize yourself with our contributing guidelines.

Summary

RetrunTypes from command methods are getting casted to a Task on execution. This PR adds a check if a command method returns a Task

@OoLunar
Copy link
Contributor

OoLunar commented Feb 20, 2023

Tested?

@Plerx2493
Copy link
Member Author

Plerx2493 commented Feb 20, 2023

Works fine with my bot

Tested methods return Task or Task which returns a int

@OoLunar OoLunar merged commit 21b3fe0 into DSharpPlus:master Feb 20, 2023
Plerx2493 added a commit to Plerx2493/DSharpPlus that referenced this pull request Mar 13, 2023
OoLunar pushed a commit that referenced this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants