Format the project with 'dotnet format' (#2551)
* Sync and Re-Format * Fix Title string. * Fix indentation.
This commit is contained in:
@@ -3,13 +3,13 @@ using Discord.API.Rest;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WidgetModel = Discord.API.GuildWidget;
|
||||
using ImageModel = Discord.API.Image;
|
||||
using Model = Discord.API.Guild;
|
||||
using RoleModel = Discord.API.Role;
|
||||
using ImageModel = Discord.API.Image;
|
||||
using System.IO;
|
||||
using WidgetModel = Discord.API.GuildWidget;
|
||||
|
||||
namespace Discord.Rest
|
||||
{
|
||||
@@ -1040,7 +1040,7 @@ namespace Discord.Rest
|
||||
{
|
||||
Enabled = enabled,
|
||||
Description = description,
|
||||
WelcomeChannels = channels?.Select(ch => new API.WelcomeScreenChannel
|
||||
WelcomeChannels = channels?.Select(ch => new API.WelcomeScreenChannel
|
||||
{
|
||||
ChannelId = ch.Id,
|
||||
Description = ch.Description,
|
||||
@@ -1051,7 +1051,7 @@ namespace Discord.Rest
|
||||
|
||||
var model = await client.ApiClient.ModifyGuildWelcomeScreenAsync(args, guild.Id, options);
|
||||
|
||||
if(model.WelcomeChannels.Length == 0)
|
||||
if (model.WelcomeChannels.Length == 0)
|
||||
return null;
|
||||
|
||||
return new WelcomeScreen(model.Description.GetValueOrDefault(null), model.WelcomeChannels.Select(
|
||||
|
||||
Reference in New Issue
Block a user