1
0

Added option to customize the messages sent when the users starts streaming

This commit is contained in:
2020-05-18 23:15:59 +02:00
parent 5309271ebc
commit f6e409e7d5
11 changed files with 801 additions and 245 deletions

View File

@@ -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");
}
}