Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 internal RestGuildVoiceRegion(RestDiscordClient client, VoiceRegionModel model, Snowflake guildId) : base(client, model)
 {
     GuildId = guildId;
     Guild   = new RestDownloadable <RestGuild>(options => Client.GetGuildAsync(GuildId, options));
 }