Struct GuildFeatures
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a collection of features of a guild.
public readonly struct GuildFeatures
- Inherited Members
Fields
None
Gets a blank GuildPermissions that grants no permissions.
public static readonly GuildPermissions None
Field Value
Properties
IsKeyAccount
Gets whether the guild is a key account guild.
public bool IsKeyAccount { get; }
Property Value
IsOfficial
Gets whether the guild is an official KOOK guild.
public bool IsOfficial { get; }
Property Value
IsPartner
Gets whether the guild is a partner guild.
public bool IsPartner { get; }
Property Value
RawValues
Gets a collection of string
s representing the raw values of the features.
public IReadOnlyCollection<string> RawValues { get; }
Property Value
Remarks
Features that are not contained in GuildFeature can be found here.
Value
Gets the flags of recognized features for this guild.
public GuildFeature Value { get; }
Property Value
Methods
HasFeature(GuildFeature)
Returns whether or not this guild has a feature.
public bool HasFeature(GuildFeature feature)
Parameters
feature
GuildFeatureThe feature(s) to check for.
Returns
- bool
true
if this guild has the provided feature(s), otherwisefalse
.
HasFeature(string)
Returns whether or not this guild has a feature.
public bool HasFeature(string feature)
Parameters
feature
stringThe feature to check for.
Returns
- bool
true
if this guild has the provided feature, otherwisefalse
.