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:
parent
e283ba5a6d
commit
6247a55a35
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue