]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/DiscordChannel.php
track twitch category where chats were sent in
[alttp.git] / app / Models / DiscordChannel.php
index ba3d3176710608e5996bdbaec253c0dcdab3e825..c01ca46d3a2adf39076ca53cd4453d3186502d06 100644 (file)
@@ -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 = [