Browse Source

Resolve build errors

pull/2281/head
Armano den Boef 3 years ago
parent
commit
1310d99ce5
3 changed files with 6 additions and 6 deletions
  1. +4
    -4
      src/Discord.Net.Rest/Entities/Interactions/CommandBase/RestCommandBase.cs
  2. +1
    -1
      src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs
  3. +1
    -1
      src/Discord.Net.Rest/Entities/Interactions/SlashCommands/RestSlashCommand.cs

+ 4
- 4
src/Discord.Net.Rest/Entities/Interactions/CommandBase/RestCommandBase.cs View File

@@ -39,16 +39,16 @@ namespace Discord.Rest
{
}

internal new static async Task<RestCommandBase> CreateAsync(DiscordRestClient client, Model model)
internal new static async Task<RestCommandBase> CreateAsync(DiscordRestClient client, Model model, bool doApiCall)
{
var entity = new RestCommandBase(client, model);
await entity.UpdateAsync(client, model).ConfigureAwait(false);
await entity.UpdateAsync(client, model, doApiCall).ConfigureAwait(false);
return entity;
}

internal override async Task UpdateAsync(DiscordRestClient client, Model model)
internal override async Task UpdateAsync(DiscordRestClient client, Model model, bool doApiCall)
{
await base.UpdateAsync(client, model).ConfigureAwait(false);
await base.UpdateAsync(client, model, doApiCall).ConfigureAwait(false);
}

/// <summary>


+ 1
- 1
src/Discord.Net.Rest/Entities/Interactions/ContextMenuCommands/UserCommands/RestUserCommand.cs View File

@@ -32,7 +32,7 @@ namespace Discord.Rest

internal override async Task UpdateAsync(DiscordRestClient client, Model model, bool doApiCall)
{
await base.UpdateAsync(client, model).ConfigureAwait(false);
await base.UpdateAsync(client, model, doApiCall).ConfigureAwait(false);

var dataModel = model.Data.IsSpecified
? (DataModel)model.Data.Value


+ 1
- 1
src/Discord.Net.Rest/Entities/Interactions/SlashCommands/RestSlashCommand.cs View File

@@ -26,7 +26,7 @@ namespace Discord.Rest
internal new static async Task<RestSlashCommand> CreateAsync(DiscordRestClient client, Model model, bool doApiCall)
{
var entity = new RestSlashCommand(client, model);
await entity.UpdateAsync(client, model).ConfigureAwait(false);
await entity.UpdateAsync(client, model, doApiCall).ConfigureAwait(false);
return entity;
}



Loading…
Cancel
Save