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

[Commands] Upper case letters in name of slash commands #1776

Closed
BlackLotusLV opened this issue Feb 18, 2024 · 2 comments · Fixed by #1777
Closed

[Commands] Upper case letters in name of slash commands #1776

BlackLotusLV opened this issue Feb 18, 2024 · 2 comments · Fixed by #1777
Labels
bug commands For issues related to DSharpPlus.Commands
Milestone

Comments

@BlackLotusLV
Copy link

Summary

Setting the name of a command with upper case letters, for example "HokusPokus" would register the command on discord as "_hokus_pokus" and not count towards registered commands in the bot itself.

What version of the library are you using?

v5.0.0-nightly (make sure you are using the latest nightly!)

What .NET version are you using? Make sure to use the latest patch release for your major version.

.NET 8.0

Operating System

win11

Reproduction Steps

make a command with the new DSharpPlus.Commands that contains upper case letters in the name

Trace Logs

No response

Exceptions or other error messages

No response

Anything else you'd like to share

No response

@akiraveliara akiraveliara added the commands For issues related to DSharpPlus.Commands label Feb 18, 2024
@akiraveliara akiraveliara added this to the v5.0 milestone Feb 18, 2024
@BlackLotusLV
Copy link
Author

Example with upper
uppercase
Example with lower, same exact code otherwise
lowercase

@akiraveliara
Copy link
Member

as per the documentation, uppercase commands are not supported, but it should still either fail or lower and register it correctly:

If there is a lowercase variant of any letters used, you must use those.

we'll be figuring out a solution, but i won't promise that it won't just fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commands For issues related to DSharpPlus.Commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants