Added option to customize the messages sent when the users starts streaming
This commit is contained in:
@@ -34,4 +34,13 @@ class TwitchWebhook extends Model
|
||||
public function webhookActions() {
|
||||
return $this->hasMany("App\WebhookAction", "webhook_id");
|
||||
}
|
||||
|
||||
// event handlers
|
||||
|
||||
/**
|
||||
* Get discord message/embed assigned to this twitch webhook
|
||||
*/
|
||||
public function discordWebhookMessage() {
|
||||
return $this->morphedByMany("App\DiscordWebhookMessage", "twitch_webhook_event");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user