X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FDiscordChannel.php;h=c01ca46d3a2adf39076ca53cd4453d3186502d06;hb=8645b77ea2dc402f0265e1c8022ba18302506ca1;hp=ba3d3176710608e5996bdbaec253c0dcdab3e825;hpb=d566d913c251fbb05e6bd314cc51f8b5ca49fe57;p=alttp.git diff --git a/app/Models/DiscordChannel.php b/app/Models/DiscordChannel.php index ba3d317..c01ca46 100644 --- a/app/Models/DiscordChannel.php +++ b/app/Models/DiscordChannel.php @@ -38,11 +38,12 @@ class DiscordChannel extends Model $model->type = $channel->type; $model->position = $channel->position; $model->private = $channel->is_private; + $model->parent_id = $channel->parent_id; $model->save(); } public function guild() { - return $this->belongsTo(DiscordGuild::class); + return $this->belongsTo(DiscordGuild::class, 'discord_guild_id'); } protected $fillable = [