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

feat: add application and application commands support #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elct9620
Copy link

For my Discord Bot, I need to create an "application command" to allow a user to trigger the bot with /help and interact with it.

  • Add Client#application(id) to get application by id
  • Add Client#current_application to get application by @me shortcut (auto-replace id when use #commands)
  • Add Application#commands to get global application commands
  • Add ApplicationCommands#create(payload) to allow create new command
  • Add ApplicationCommand#update(payload) to allow update command itself
  • Add ApplicationCommand#delete to allow the delete command itself

Not sure which style is preferred, make a minimal workable implementation

Types of Changes

  • New feature.

Contribution

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.

1 participant