public static VerificationKey GenerateVerificationKey(ulong guildid, ulong userid, long forumuserid, VerificationKeyScope keyscope) { var vkey = new VerificationKey(GenerateKey(), keyscope, forumuserid, userid, guildid); _verificationKeys.Add(vkey); return(vkey); }
public bool Equals(VerificationKey other, bool ignoreKey) => (ignoreKey || string.Equals(Key, other.Key)) && KeyScope == other.KeyScope && ForumUserId == other.ForumUserId && DiscordUserId == other.DiscordUserId && GuildId == other.GuildId;
protected bool Equals(VerificationKey other) => Equals(other, false);
public static bool HasVerificationKey(VerificationKey key, bool ignoreKey = false) => _verificationKeys.Any(vkey => vkey.Equals(key, ignoreKey));