Added option to customize the messages sent when the users starts streaming
This commit is contained in:
36
app/DiscordWebhookMessage.php
Normal file
36
app/DiscordWebhookMessage.php
Normal 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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user