internal RestVoiceRegion(RestDiscordClient client, VoiceRegionModel model) : base(client) { Id = model.Id; Name = model.Name; IsVip = model.Vip; IsOptimal = model.Optimal; IsDeprecated = model.Deprecated; IsCustom = model.Custom; }
internal RestGuildVoiceRegion(RestDiscordClient client, Snowflake guildId, VoiceRegionModel model) : base(client, model) { GuildId = guildId; Guild = RestFetchable.Create(this, (@this, options) => @this.Client.GetGuildAsync(@this.GuildId, options)); }
internal RestGuildVoiceRegion(RestDiscordClient client, VoiceRegionModel model, Snowflake guildId) : base(client, model) { GuildId = guildId; Guild = new RestDownloadable <RestGuild>(options => Client.GetGuildAsync(GuildId, options)); }