Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<PackageVersion Include="BenchmarkDotNet" Version="0.15.8" />

<!-- Analyzers-->
<GlobalPackageReference Include="Meziantou.Analyzer" Version="2.0.286">
<GlobalPackageReference Include="Meziantou.Analyzer" Version="2.0.296">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</GlobalPackageReference>
Expand Down Expand Up @@ -133,7 +133,7 @@
<PackageVersion Include="GitHubActionsTestLogger" Version="3.0.1" />
<PackageVersion Include="Verify" Version="$(VerifyVersion)" />
<PackageVersion Include="Verify.TUnit" Version="$(VerifyVersion)" />
<PackageVersion Include="TUnit" Version="1.12.93" />
<PackageVersion Include="TUnit" Version="1.12.125" />



Expand Down
14 changes: 7 additions & 7 deletions src/PaperMalKing.Startup/Commands/UngroupedCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public async Task AboutCommand(InteractionContext context)

const string sourceCodeLink = "https://github.com/TanteiBot/Tantei";

var versions = string.Create(CultureInfo.InvariantCulture, $"""
Bot version - {botVersion}
Commit - {Formatter.MaskedUrl(commitId, new($"{sourceCodeLink}/tree/{commitId}"))}
Commit date - {Formatter.Timestamp(commitDate, TimestampFormat.ShortDateTime)}
DSharpPlus version - {context.Client.VersionString.AsSpan(0, Math.Min(context.Client.VersionString.Length, 14))}
.NET version - {dotnetVersion}
""");
var versions = $"""
Bot version - {botVersion}
Commit - {Formatter.MaskedUrl(commitId, new($"{sourceCodeLink}/tree/{commitId}"))}
Commit date - {Formatter.Timestamp(commitDate, TimestampFormat.ShortDateTime)}
DSharpPlus version - {context.Client.VersionString.AsSpan(0, Math.Min(context.Client.VersionString.Length, 14))}
.NET version - {dotnetVersion}
""";

var embedBuilder = new DiscordEmbedBuilder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Copyright (C) 2021-2025 N0D4N

using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.CompilerServices;
using DSharpPlus.Entities;
using Microsoft.EntityFrameworkCore;
Expand Down Expand Up @@ -61,6 +60,6 @@ public async Task RemoveColorAsync(ulong userId, TUpdateType updateType)
}

return $"Your colors: {colors.Select(c =>
$"{(TUpdateType)(object)c.UpdateType}: #{string.Create(CultureInfo.InvariantCulture, $"{c.ColorValue:X6}")}").JoinToString('\n')}";
$"{(TUpdateType)(object)c.UpdateType}: #{c.ColorValue:X6}").JoinToString('\n')}";
}
}
Loading