Files
nadekobot/src/NadekoBot/_common/_Extensions/BotCredentialsExtensions.cs
Kwoth d00e59567a fix: Fixed greet/bye messages showing wrong message in the wrong server sometimes
docs: Version upped to 5.1.12. Updated CHANGELOG.md
2024-10-03 11:31:28 +00:00

10 lines
297 B
C#

namespace NadekoBot.Extensions;
public static class BotCredentialsExtensions
{
public static bool IsOwner(this IBotCreds creds, IUser user)
=> creds.IsOwner(user.Id);
public static bool IsOwner(this IBotCreds creds, ulong userId)
=> creds.OwnerIds.Contains(userId);
}