The OpenD Programming Language

SlashCommandHandler

You can create your own slash command handlers by subclassing this and writing methods like

It will register for you when you connect and call your function when things come in.

class SlashCommandHandler {}

Constructors

this
this()

This takes the child type into the parent so we can reflect over your added methods. to initialize the reflection info to send to Discord. If you subclass your subclass, make sure the grandchild constructor does super(); registerAll(this); to add its method to the list too, but if you only have one level of child, the compiler will auto-generate a constructor for you that calls this.

Members

Classes

InteractionReplyHelper
class InteractionReplyHelper

See Also

Meta