fix: fixed .sclr again, again, and fixed .iamn

This commit is contained in:
Kwoth
2024-11-27 03:26:57 +00:00
parent 62a16f3faf
commit e036a2d3c9
4 changed files with 11 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ public partial class Administration
IUserMessage msg = null;
try
{
if (guildUser.RoleIds.Contains(role.Id))
if (!guildUser.RoleIds.Contains(role.Id))
{
msg = await Response().Error(strs.self_assign_not_have(Format.Bold(role.Name))).SendAsync();
return;

View File

@@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>5.2.3</Version>
<Version>5.2.4</Version>
<!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View File

@@ -126,8 +126,8 @@ public sealed class GuildColorsService : IReadyExecutor, IGuildColorsService, IN
{
var colors = new Colors(
ConvertColor(color.OkColor),
ConvertColor(color.ErrorColor),
ConvertColor(color.PendingColor));
ConvertColor(color.PendingColor),
ConvertColor(color.ErrorColor));
_colors.TryAdd(color.GuildId, colors);
}