Skip to content

Commit

Permalink
Added Message event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Hansen committed Jan 27, 2017
1 parent 3d1df28 commit c365523
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ protected $listen = [
|im_created|\Lisennk\LaravelSlackEvents\Events\ImCreated|
|im_history_changed|\Lisennk\LaravelSlackEvents\Events\ImHistoryChanged|
|im_open|\Lisennk\LaravelSlackEvents\Events\ImOpen|
|message|\Lisennk\LaravelSlackEvents\Events\Message|
|message.channels|\Lisennk\LaravelSlackEvents\Events\MessageChannels|
|message.groups|\Lisennk\LaravelSlackEvents\Events\MessageGroups|
|message.im|\Lisennk\LaravelSlackEvents\Events\MessageIm|
Expand Down
2 changes: 2 additions & 0 deletions src/EventCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
use Lisennk\LaravelSlackEvents\Events\ImCreated;
use Lisennk\LaravelSlackEvents\Events\ImHistoryChanged;
use Lisennk\LaravelSlackEvents\Events\ImOpen;
use Lisennk\LaravelSlackEvents\Events\Message;
use Lisennk\LaravelSlackEvents\Events\MessageChannels;
use Lisennk\LaravelSlackEvents\Events\MessageGroups;
use Lisennk\LaravelSlackEvents\Events\MessageIm;
Expand Down Expand Up @@ -94,6 +95,7 @@ class EventCreator
'im_created' => ImCreated::class,
'im_history_changed' => ImHistoryChanged::class,
'im_open' => ImOpen::class,
'message' => Message::class,
'message.channels' => MessageChannels::class,
'message.groups' => MessageGroups::class,
'message.im' => MessageIm::class,
Expand Down
16 changes: 16 additions & 0 deletions src/Events/Message.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Lisennk\LaravelSlackEvents\Events;

use Lisennk\LaravelSlackEvents\Events\Base\SlackEvent;

/**
* Slack Events API event
*
* @see https://api.slack.com/events
* @package Lisennk\LaravelSlackEvents\Events
*/
class Message extends SlackEvent
{
//
}

0 comments on commit c365523

Please sign in to comment.