You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incomplete typing on commands.register_injection and Injection
What is the feature request for?
disnake.ext.commands
The Problem
using commands.register_injection doesn't return anything which means this injection cannot be used like other decorators cog which is annoying and disappointing.
The Ideal Solution
The commands.register_injection method should return an Injection instance and additionally be fully typed so it can decorate a method without returning nothing.
The Current Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
onerandomusername
changed the title
Complete Injection and commands.inject typing
Complete Injection and commands.register_injection typing
Sep 11, 2022
Summary
Incomplete typing on commands.register_injection and Injection
What is the feature request for?
disnake.ext.commands
The Problem
using commands.register_injection doesn't return anything which means this injection cannot be used like other decorators cog which is annoying and disappointing.
The Ideal Solution
The commands.register_injection method should return an Injection instance and additionally be fully typed so it can decorate a method without returning nothing.
The Current Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: