UserInterface.commandCreated() vs. Command.commandCreated()

UserInterface.commandCreated() vs. Command.commandCreated()

spmcveigh
Participant Participant
372 Views
0 Replies
Message 1 of 1

UserInterface.commandCreated() vs. Command.commandCreated()

spmcveigh
Participant
Participant

I'm trying to discern the difference between UserInterface.commandCreated Event and CommandDefinition.commandCreated Event.  These reference two distinct Event classes, ApplicationCommandEvent and CommandCreatedEvent, respectively. Some of the API examples, like SpurGear, use the latter to setup all the inputs and other Events associated with the Command.  I haven't yet seen any examples of the former in the API. Could someone explain the use case differences between the two?

0 Likes
373 Views
0 Replies
Replies (0)