1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-05 21:46:28 +03:00

Use Snowflake#Empty extension method instead of '== 0' checks (#134)

This commit is contained in:
Octol1ttle 2023-09-30 20:53:05 +05:00 committed by GitHub
parent e283ba5a6d
commit 6247a55a35
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ public class MuteCommandGroup : CommandGroup
return await _feedback.SendContextualEmbedResultAsync(embed, CancellationToken);
}
if (GuildSettings.MuteRole.Get(data.Settings) != 0)
if (!GuildSettings.MuteRole.Get(data.Settings).Empty())
{
return await RoleMuteUserAsync(
target, reason, duration, guildId, data, channelId, user, currentUser, CancellationToken);