Class InviteModule
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
3 邀请模块,可用于 ICard 中。
public class InviteModule : IModule, IEquatable<InviteModule>, IEquatable<IModule>- Inheritance
- 
      
      InviteModule
- Implements
- Inherited Members
- Extension Methods
Properties
Code
获取邀请代码。
public string? Code { get; }Property Value
Type
获取模块的类型。
public ModuleType Type { get; }Property Value
Methods
Equals(InviteModule?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(InviteModule? inviteModule)Parameters
- inviteModuleInviteModule
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)Parameters
- objobject
- The object to compare with the current object. 
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()Returns
- int
- A hash code for the current object. 
Operators
operator ==(InviteModule, InviteModule)
判定两个 InviteModule 是否相等。
public static bool operator ==(InviteModule left, InviteModule right)Parameters
- leftInviteModule
- rightInviteModule
Returns
- bool
- 如果两个 InviteModule 相等,则为 - true;否则为- false。
operator !=(InviteModule, InviteModule)
判定两个 InviteModule 是否不相等。
public static bool operator !=(InviteModule left, InviteModule right)Parameters
- leftInviteModule
- rightInviteModule
Returns
- bool
- 如果两个 InviteModule 不相等,则为 - true;否则为- false。