@sodacore/discord
Version:
Sodacore Discord is a plugin that offers Discord SSO/OAuth2 support and the ability to create bots in a similar controller pattern.
24 lines (16 loc) • 656 B
Markdown
# Sodacore Discord Plugin
## Decorators
```ts
@Command(SlashCommandBuilder)
@ContextMenu()
@Event()
@On.Command() // Default command.
@On.SubCommand(...commands: string[]) // On sub command.
@On.Autocomplete(...commands?: string[]) // On autocomplete for given commands.
@On.Button(uniqueId: string) // On button click for given ID.
@On.SelectMenu(uniqueId: string) // On select menu for given ID.
@On.ModalSubmit(uniqueId: string) // On modal submit for given ID.
@On.Event(event: string) // On event.
@Add.MessageContext(label: string) // Add message context to the command.
@Add.UserContext(label: string) // Add user context to the command.
```