-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Suggestions: Small Utilities #132
Comments
This is probably not "small", but something that would be really nice to have is command cooldowns and concurrency limits |
As said on Discord, I'd like a method on the |
@Galarzaa90 Please see #27 and #36 - cooldowns would be great to have, but I can't wrap my head around an implementation for it, which is why it hasn't been done. @Jamalam360 Added, see #140 |
Thanks |
For check context some sort of isOwner check that gets application owner and if in a team all owners and passes check if it was the executer, also as application info is a rest some sort of cache or logic here. NSFW check would also be cool built into check context. |
A way to handle unknown components, can be useful if bot restarts and user is not hit with application did not respond error but ephemeral message explaining what happened. |
A way to have default paginator accept a default check or some boolean that allows sending a response to non-authorized users of the paginator that this can not be used for them for UX purposes. |
Exposing They can already be obtained from
|
Convenience access to |
A way to differentiate members in the guild with users supplied outside the guild. Currently optionalMember returns both null for both user outside guild supplied and no arguments supplied. Considering Discord only supplies a USER object and does not tell you if a MEMBER was in the guild. Use-case: Having an toggle in optionalMember to do a custom check or tell user that the user supplied is not in the guild and still return null could work. The major reason is to alert that a user that is not in the guild was supplied to the optionalMember therefore making it easy for user to see what they did wrong. |
I've given a shot at this, but I think it needs some testing. You'll have to let me know how it goes. It'll be up in about 15 mins or so. |
Just like Could be useful for Extensions for specific guilds. |
Is this a simple suggestion, or is there a use-case you have in mind? |
I think both. In my case, I have all global commands, but I have this Extension for staff related commands, and these are guild commands in our support server. So each command here has So of course it is easy to just have the snowflake as a local variable in the extension and then use it on every command declaration, but I figured since we have |
…for editing members
A Just like: |
Worth noting that the new i18n system removed |
List converters inherit the builder for the single converter these days. However, I've gone ahead and added a There are no floating-point ranges in Kotlin, so floating-point converters don't support this. |
I've created this issue so that people can suggest small utilities without creating an entirely new issue for them. Just leave a comment below, and I'll have a look when I can.
Next up
Implemented
translate
overload forValidationContext
without the bundle parameterThe text was updated successfully, but these errors were encountered: