Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityWolfNotAmused committed Jan 13, 2024
1 parent d109a91 commit c0a3822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DiscordPlayerCountBot/DiscordClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public static async Task SetChannelName(this IDiscordClient socket, ulong? chann

if (channel != null)
{
if (channel is ITextChannel && channel is not IVoiceChannel)
{
gameStatus = gameStatus.Replace('/', '-').Replace(' ', '-').Replace(':', '-');
}
if (channel is ITextChannel && channel is not IVoiceChannel)

Check failure on line 28 in DiscordPlayerCountBot/DiscordClient.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/DiscordClient.cs#L28

WHITESPACE: Fix whitespace formatting. Replace 10 characters with '\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.
{

Check failure on line 29 in DiscordPlayerCountBot/DiscordClient.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/DiscordClient.cs#L29

WHITESPACE: Fix whitespace formatting. Replace 10 characters with '\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.
gameStatus = gameStatus.Replace('/', '-').Replace(' ', '-').Replace(':', '-');

Check failure on line 30 in DiscordPlayerCountBot/DiscordClient.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/DiscordClient.cs#L30

WHITESPACE: Fix whitespace formatting. Replace 11 characters with '\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.
}

Check failure on line 31 in DiscordPlayerCountBot/DiscordClient.cs

View workflow job for this annotation

GitHub Actions / dotnet_format

DiscordPlayerCountBot/DiscordClient.cs#L31

WHITESPACE: Fix whitespace formatting. Replace 10 characters with '\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s'.

//Keep in mind there is a massive rate limit on this call that is specific to discord, and not Discord.Net
//2x per 10 minutes
Expand Down
1 change: 1 addition & 0 deletions DiscordPlayerCountBot/DiscordPlayerCountBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath></OutputPath>
Expand Down

0 comments on commit c0a3822

Please sign in to comment.