Rocket.Chat.Apps-engine icon indicating copy to clipboard operation
Rocket.Chat.Apps-engine copied to clipboard

Add Event Priority to Event Listeners

Open graywolf336 opened this issue 3 years ago • 0 comments

What? :boat:

  • New method decorator which sets the priority of the event

Why? :thinking:

  • So app developers can determine the priority of their listeners (mostly useful for private apps that must have a certain order)

Links :earth_americas:

#453

PS :eyes:

@SetEventPriority(EventPriority.HIGHEST)
public async executePreMessageSentModify(message: IMessage, builder: IMessageBuilder, read: IRead, http: IHttp, persistence: IPersistence): Promise<IMessage> {
}

graywolf336 avatar Dec 07 '21 21:12 graywolf336