public static Task ReorderGuildChannelsAsync(this IRestApiClient client, Snowflake guildId, JsonObjectRestRequestContent <ReorderJsonRestRequestContent[]> content, IRestRequestOptions options = null, CancellationToken cancellationToken = default) { var route = Format(Route.Guild.ReorderChannels, guildId); return(client.ExecuteAsync(route, content, options, cancellationToken)); }
public static Task <ApplicationCommandJsonModel[]> SetGuildApplicationCommandsAsync(this IRestApiClient client, Snowflake applicationId, Snowflake guildId, JsonObjectRestRequestContent <ModifyApplicationCommandJsonRestRequestContent[]> content, IRestRequestOptions options = null) { var route = Format(Route.Interactions.SetGuildCommands, applicationId, guildId); return(client.ExecuteAsync <ApplicationCommandJsonModel[]>(route, content, options)); }
public static Task <RoleJsonModel[]> ReorderRolesAsync(this IRestApiClient client, Snowflake guildId, JsonObjectRestRequestContent <ReorderJsonRestRequestContent[]> content, IRestRequestOptions options = null) { var route = Format(Route.Guild.ReorderRoles, guildId); return(client.ExecuteAsync <RoleJsonModel[]>(route, content, options)); }