@@ -15,11 +15,11 @@ namespace Discord.Rest
{
{
//General
//General
public static async Task<Model> ModifyAsync(IGuild guild, BaseDiscordClient client,
public static async Task<Model> ModifyAsync(IGuild guild, BaseDiscordClient client,
Action<ModifyGuildParam s> func, RequestOptions options)
Action<GuildPropertie s> func, RequestOptions options)
{
{
if (func == null) throw new NullReferenceException(nameof(func));
if (func == null) throw new NullReferenceException(nameof(func));
var args = new ModifyGuildParam s();
var args = new GuildPropertie s();
func(args);
func(args);
var apiArgs = new API.Rest.ModifyGuildParams
var apiArgs = new API.Rest.ModifyGuildParams
@@ -57,11 +57,11 @@ namespace Discord.Rest
return await client.ApiClient.ModifyGuildAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
return await client.ApiClient.ModifyGuildAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
}
}
public static async Task<EmbedModel> ModifyEmbedAsync(IGuild guild, BaseDiscordClient client,
public static async Task<EmbedModel> ModifyEmbedAsync(IGuild guild, BaseDiscordClient client,
Action<ModifyGuildEmbedParam s> func, RequestOptions options)
Action<GuildEmbedPropertie s> func, RequestOptions options)
{
{
if (func == null) throw new NullReferenceException(nameof(func));
if (func == null) throw new NullReferenceException(nameof(func));
var args = new ModifyGuildEmbedParam s();
var args = new GuildEmbedPropertie s();
func(args);
func(args);
var apiArgs = new API.Rest.ModifyGuildEmbedParams
var apiArgs = new API.Rest.ModifyGuildEmbedParams
{
{
@@ -76,13 +76,13 @@ namespace Discord.Rest
return await client.ApiClient.ModifyGuildEmbedAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
return await client.ApiClient.ModifyGuildEmbedAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
}
}
public static async Task ModifyChannelsAsync(IGuild guild, BaseDiscordClient client,
public static async Task ModifyChannelsAsync(IGuild guild, BaseDiscordClient client,
IEnumerable<GuildChannels Properties> args, RequestOptions options)
IEnumerable<Bulk GuildChannelProperties> args, RequestOptions options)
{
{
var apiArgs = args.Select(x => new API.Rest.ModifyGuildChannelsParams(x.Id, x.Position));
var apiArgs = args.Select(x => new API.Rest.ModifyGuildChannelsParams(x.Id, x.Position));
await client.ApiClient.ModifyGuildChannelsAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
await client.ApiClient.ModifyGuildChannelsAsync(guild.Id, apiArgs, options).ConfigureAwait(false);
}
}
public static async Task<IReadOnlyCollection<RoleModel>> ModifyRolesAsync(IGuild guild, BaseDiscordClient client,
public static async Task<IReadOnlyCollection<RoleModel>> ModifyRolesAsync(IGuild guild, BaseDiscordClient client,
IEnumerable<ModifyGuildRolesParam s> args, RequestOptions options)
IEnumerable<BulkRolePropertie s> args, RequestOptions options)
{
{
var apiArgs = args.Select(x => new API.Rest.ModifyGuildRolesParams(x.Id)
var apiArgs = args.Select(x => new API.Rest.ModifyGuildRolesParams(x.Id)
{
{