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

DiscordKit for Bots - Continuation #26

Open
22 of 34 tasks
cryptoAlgorithm opened this issue May 9, 2023 · 1 comment
Open
22 of 34 tasks

DiscordKit for Bots - Continuation #26

cryptoAlgorithm opened this issue May 9, 2023 · 1 comment

Comments

@cryptoAlgorithm
Copy link
Member

cryptoAlgorithm commented May 9, 2023

Original PR: #18

Bot support was a tough one to tackle, and laid idle in another branch with low visibility while I was allocating my contribution time to other projects. I can't wait to bring the first Swift Discord library with slash command support (and now the only maintained one), so I'm moving the ever-growing bucket list to this long-running issue :D

Bucket List

  • Bot gateway identification with intents support
  • Correct user agent, properties and REST authentication
  • Sending basic messages
  • Event dispatching with NotificationCenter for message
    create and ready events
  • Application command registration with a resultBuilder - supported application command types:
    • chatInput - Slash commands
    • user - Actions that appear in context menu of users
    • message - Actions that appear in context menu of messages
  • Adding options to commands in the resultBuilder - supported types:
    • subCommand - A "sub-command" with no options
    • subCommandGroup - A group for nesting other options
    • string - An option accepting a String value
    • integer - An option accepting an Int value
    • boolean - An option accepting a Bool value
    • user - An option accepting a user as its value
    • channel - An option accepting a channel as its value
    • role - An option accepting a role as its value
    • mentionable - An option accepting a @mention as its value
    • number - An option accepting a Double value
    • attachment - An option accepting a file attachment as its value
  • Message components - supported types:
    • Button
    • Action row
    • Select Menu
    • Text Input
    • Modals
      • Text Input
  • Handling interactions with a closure, allowing responses
  • Support more types of interaction responses
    • Plain content responses
    • Ephemeral responses
    • Deferred responses
    • Embeds
      • Construct fields with a resultBuilder
@cph101
Copy link

cph101 commented Jan 2, 2025

@cryptoAlgorithm Hey, I’d be happy to help develop this library! I am writing a bot in Swift currently (since every other language I know is lacking) and am using this framework. Please look out for PRs if you have a few spare moments…

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

No branches or pull requests

2 participants