fix: Fixed greet/bye messages showing wrong message in the wrong server sometimes

docs: Version upped to 5.1.12. Updated CHANGELOG.md
This commit is contained in:
Kwoth
2024-10-03 11:31:28 +00:00
parent 0aba2fdcaf
commit d00e59567a
37 changed files with 102 additions and 75 deletions

View File

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