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

@@ -0,0 +1,36 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class DiscordWebhookMessage extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
"enabled",
"discord_webhook_url",
"username",
"avatar",
"content",
"has_embed",
"embed_color",
"embed_author_name",
"embed_author_url",
"embed_author_icon",
"embed_thumbnail",
"embed_title",
"embed_description",
"embed_url",
"embed_image",
"embed_fields"
];
public function twitchWebook() {
return $this->morphToMany("App\TwitchWebhook", "twitch_webhook_events");
}
}