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

Fix: Interaction and commands in dm channels #83

Merged
merged 15 commits into from
Feb 19, 2023
Merged

Conversation

vic256
Copy link
Member

@vic256 vic256 commented Feb 19, 2023

  • Add global and guild command interactions
  • Implement command interactions in dm channels
  • Implement button interactions in dm channels
  • Implement select menu interactions in dm channels

Breaking change

  • <CommandInteraction>.channel return PartialChannel instead of PartialTextChannel.

New command system

The command class extends MineralCommand<GuildCommandInteraction> or MineralCommand<GlobalCommandInteraction>. Use the first one with guild scope (default) and the second one with global scope.

  • <GuildCommandInteraction>.channel return PartialTextChannel
  • <GlobalCommandInteraction>.channel return PartialChannel (DmChannel or PartialTextChannel)

@vic256 vic256 added the enhancement New feature or request label Feb 19, 2023
@vic256 vic256 self-assigned this Feb 19, 2023
@LeadcodeDev LeadcodeDev merged commit d7196fc into develop Feb 19, 2023
@LeadcodeDev LeadcodeDev deleted the fix/dm-channels branch February 19, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants