- Most core actions in this package will dispatch event(s). This gives you the flexibility to attach your own event listeners as needed.
- By default, specific events have already been subscribed to internally through the event subscribers. Depending on your config settings, these subscribers can be enabled or disabled.
- Note that all the events dispatched will come from the namespace
RTippin\Messenger\Events
- Dispatched when a
BotActionHandlerfails being triggered, resulting in an exception. The exception will be caught and forwarded into this event.$event->action:BotActionmodel that failed.$event->exception:Throwableexception thrown.
- Dispatched when a
BotActionHandleris successfully handled.$event->action:BotActionmodel that was triggered.$event->message:Messagemodel that triggered theBotAction.$event->trigger:string|nulltrigger that was matched on theBotAction.
- Dispatched when a
BotActionis deleted.$event->provider:?MessengerProvidernullable provider that deleted theBotAction.$event->action:arraydata of the deletedBotAction.
- Dispatched when a
BotActionis updated.$event->provider:MessengerProviderprovider that updated theBotAction.$event->action:BotActionmodel that was updated.
- Dispatched when a
Botis archived.$event->provider:MessengerProviderprovider that archived theBot.$event->bot:Botmodel that was archived.
- Dispatched when a
Botavatar is uploaded or removed.$event->provider:MessengerProviderprovider that updated theBotavatar.$event->bot:Botmodel that had its avatar updated.
- Dispatched when a
Bothas its settings uploaded.$event->provider:MessengerProviderprovider that updated theBot.$event->bot:Botmodel that was updated.$event->originalName:stringoriginal name of theBotbefore being updated, should the bot be given a new name.
- Dispatched when a broadcast fails and throws an exception. The exception will be caught and forwarded into this event.
$event->abstractBroadcast: AbstractMessengerBroadcastclassstringbeing broadcasted.$event->channels:arrayof channels for the broadcast.$event->with:arrayof data to be broadcasted.$event->exception:Throwableexception thrown.
- Dispatched when a
Callis ended.$event->provider:?MessengerProvidernullable provider that ended theCall.$event->call:Callmodel that was ended.
- Dispatched when a
Callis ignored.$event->provider:MessengerProviderprovider that ignored theCall.$event->call:Callmodel that was ignored.
- Dispatched when a
CallParticipantjoins/re-joins aCall.$event->participant:CallParticipantmodel that joined theCall.$event->call:Callmodel that was joined.
- Dispatched when a
CallParticipantleftCall.$event->participant:CallParticipantmodel that left theCall.$event->call:Callmodel that was left.
- Dispatched when a
Callis created.$event->thread:Threadmodel theCallbelongs to.$event->call:Callmodel that was created.
- Dispatched when a
Participantis demoted from group admin.$event->provider:MessengerProviderprovider that demoted theParticipant.$event->thread:Threadmodel theParticipantbelongs to.$event->participant:Participantmodel that was demoted.
- Dispatched when embeds on a
Messageare removed.$event->provider:MessengerProviderprovider that removed embeds.$event->message:Messagemodel embeds were removed from.
- Dispatched when a
PendingFriendis accepted.$event->friend:Friendmodel that was created.$event->inverseFriend:Friendinverse model that was created.
- Dispatched when a
SentFriendis cancelled.$event->friend:SentFriendmodel that was deleted.
- Dispatched when a
PendingFriendis denied.$event->friend:PendingFriendmodel that was denied.
- Dispatched when a
Friendis removed.$event->friend:Friendmodel being removed.$event->inverseFriend:?Friendnullable inverse model to theFriendremoved.
- Dispatched when a
SentFriendis created.$event->friend:SentFriendmodel that was created.
- Dispatched when an
Inviteis archived.$event->provider:?MessengerProvidernullable provider that archived theInvite.$event->invite:Invitemodel that was archived.
- Dispatched when an
Inviteis used to join aThread.$event->provider:MessengerProviderprovider that used theInviteto join theThread.$event->thread:Threadmodel theInvitebelongs to.$event->invite:Invitemodel used to join theThread.
- Dispatched when a
CallParticipantis kicked or un-kicked.$event->provider:MessengerProviderprovider that kicked/un-kicked theCallParticipant.$event->participant:CallParticipantmodel that was kicked/un-kicked.$event->call:Callmodel theCallParticipantbelongs to.
- Dispatched when a knock is sent to a
Thread.$event->provider:MessengerProviderprovider that sent the knock.$event->thread:Threadmodel the knock was sent to.
- Dispatched when a
Messageis archived.$event->provider:MessengerProviderprovider archived theMessage.$event->message:Messagemodel that was archived.
- Dispatched when a
Messageis edited.$event->message:Messagemodel that was archived.$event->originalBody:?stringnullable original body of the message being edited.
- Dispatched when a
BotActionis created.$event->botAction:BotActionmodel that was created.
- Dispatched when a
Botis created.$event->bot:Botmodel that was created.
- Dispatched when an
Inviteis created.$event->invite:Invitemodel that was created.
- Dispatched when a
Messageis created.$event->message:Messagemodel that was created.$event->thread:Threadmodel theMessagebelongs to.$event->isGroupAdmin:boolwhether the message sender is a group thread admin or not.$event->senderIp:?stringnullable IP of the message sender.
- Dispatched when a
Threadis created.$event->provider:MessengerProviderprovider that created theThread.$event->thread:Threadmodel that was created.
- Dispatched after a packaged bot was successfully installed in a thead.
$event->packagedBot:PackagedBotDTOclass.$event->thread:Threadmodel the package was installed in.$event->provider:MessengerProviderprovider who installed the package.
- Dispatched when a
Participantmutes itsThread.$event->participant:Participantmodel that was muted.
- Dispatched when a
Participantpermissions is updated.$event->provider:MessengerProviderprovider that updated theParticipantpermissions.$event->thread:Threadmodel theParticipantbelongs to.$event->participant:Participantmodel that was updated.
- Dispatched when a
Participantmarks aThreadas read.$event->participant:Participantmodel that was marked read.
- Dispatched when adding participants to a
Thread.$event->provider:MessengerProviderprovider adding the participants.$event->thread:Threadmodel the added participants belong to.$event->participants:CollectionofParticipantmodels that were added to theThread.
- Dispatched when a
Participantun-mutes itsThread.$event->participant:Participantmodel that was un-muted.
- Dispatched when a
Participantis promoted to a group admin.$event->provider:MessengerProviderprovider that promoted theParticipant.$event->thread:Threadmodel theParticipantbelongs to.$event->participant:Participantmodel that was promoted.
- Dispatched when any
private channelbroadcast is emitted.$event->broadcastAs:stringbroadcast event name.$event->recipients:Collectionof all recipientID/TYPEthe broadcast was sent to.$event->data:arraydata that was sent in the broadcast.
- Dispatched when a
MessageReactionis created.$event->reaction:MessageReactionmodel that was created.
- Dispatched when a
MessageReactionis deleted.$event->provider:MessengerProviderprovider that deleted theMessageReaction.$event->reaction:arraydata of the removedMessageReactionmodel.
- Dispatched when a
MessageReactionis deleted.$event->provider:MessengerProviderprovider that deleted theMessageReaction.$event->reaction:arraydata of the removedMessageReactionmodel.
- Dispatched when a
Participantis removed from aThread.$event->provider:MessengerProviderprovider that removed theParticipant.$event->thread:Threadmodel theParticipantwas removed from.$event->participant:Participantmodel that was removed.
- Dispatched when a
MessengerProviderhits theheartbeatendpoint.$event->provider:MessengerProviderprovider using theheartbeat.$event->IP:stringIP from theMessengerProvider.$event->away:boolwhether theMessengerProvideris away/idle or not.
- Dispatched when a private
Threadapproval is approved or denied.$event->provider:MessengerProviderprovider that approved/denied the approval.$event->thread:Threadmodel being approved/denied.$event->approved:boolwhether theThreadwas approved or denied.
- Dispatched when a
Threadis archived.$event->provider:?MessengerProvidernullable provider that archived theThread.$event->thread:Threadmodel that was archived.
- Dispatched when a
Threadavatar is uploaded or removed.$event->provider:MessengerProviderprovider that updated theThreadavatar.$event->thread:Threadmodel that was updated.
- Dispatched when a
Participantleaves a groupThread.$event->provider:MessengerProviderprovider that left theThread.$event->thread:Threadmodel that was left.$event->participant:Participantmodel that left theThread.
- Dispatched when a group
Threadsettings is updated.$event->provider:MessengerProviderprovider that updated theThreadsettings.$event->thread:Threadmodel being updated.$event->nameChanged:boolwhether theThreadname was changed or not.