Format the project with 'dotnet format' (#2551)
* Sync and Re-Format * Fix Title string. * Fix indentation.
This commit is contained in:
@@ -4,11 +4,11 @@ using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WidgetModel = Discord.API.GuildWidget;
|
||||
using Model = Discord.API.Guild;
|
||||
using System.IO;
|
||||
using WidgetModel = Discord.API.GuildWidget;
|
||||
|
||||
namespace Discord.Rest
|
||||
{
|
||||
@@ -950,7 +950,7 @@ namespace Discord.Rest
|
||||
/// A task that represents the asynchronous get operation. The task result contains a read-only collection
|
||||
/// of application commands found within the guild.
|
||||
/// </returns>
|
||||
public async Task<IReadOnlyCollection<RestGuildCommand>> GetApplicationCommandsAsync (bool withLocalizations = false, string locale = null, RequestOptions options = null)
|
||||
public async Task<IReadOnlyCollection<RestGuildCommand>> GetApplicationCommandsAsync(bool withLocalizations = false, string locale = null, RequestOptions options = null)
|
||||
=> await ClientHelper.GetGuildApplicationCommandsAsync(Discord, Id, withLocalizations, locale, options).ConfigureAwait(false);
|
||||
/// <summary>
|
||||
/// Gets an application command within this guild with the specified id.
|
||||
@@ -1119,7 +1119,7 @@ namespace Discord.Rest
|
||||
|
||||
List<CustomSticker> stickers = new List<CustomSticker>();
|
||||
|
||||
foreach(var model in models)
|
||||
foreach (var model in models)
|
||||
{
|
||||
var entity = CustomSticker.Create(Discord, model, this, model.User.IsSpecified ? model.User.Value.Id : null);
|
||||
stickers.Add(entity);
|
||||
@@ -1300,7 +1300,7 @@ namespace Discord.Rest
|
||||
return null;
|
||||
}
|
||||
/// <inheritdoc />
|
||||
async Task<IStageChannel> IGuild.GetStageChannelAsync(ulong id, CacheMode mode, RequestOptions options )
|
||||
async Task<IStageChannel> IGuild.GetStageChannelAsync(ulong id, CacheMode mode, RequestOptions options)
|
||||
{
|
||||
if (mode == CacheMode.AllowDownload)
|
||||
return await GetStageChannelAsync(id, options).ConfigureAwait(false);
|
||||
@@ -1487,7 +1487,7 @@ namespace Discord.Rest
|
||||
async Task<IReadOnlyCollection<IWebhook>> IGuild.GetWebhooksAsync(RequestOptions options)
|
||||
=> await GetWebhooksAsync(options).ConfigureAwait(false);
|
||||
/// <inheritdoc />
|
||||
async Task<IReadOnlyCollection<IApplicationCommand>> IGuild.GetApplicationCommandsAsync (bool withLocalizations, string locale, RequestOptions options)
|
||||
async Task<IReadOnlyCollection<IApplicationCommand>> IGuild.GetApplicationCommandsAsync(bool withLocalizations, string locale, RequestOptions options)
|
||||
=> await GetApplicationCommandsAsync(withLocalizations, locale, options).ConfigureAwait(false);
|
||||
/// <inheritdoc />
|
||||
async Task<ICustomSticker> IGuild.CreateStickerAsync(string name, string description, IEnumerable<string> tags, Image image, RequestOptions options)
|
||||
|
||||
Reference in New Issue
Block a user