Class KuracordInviteGuild
Represents a guild to which the user is invited.
Inherited Members
Namespace: KSharpPlus.Entities.Invite
Assembly: KSharpPlus.dll
Syntax
public class KuracordInviteGuild : SnowflakeObject
Properties
| Improve this Doc View SourceDescription
Gets the guild's description.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
Disabled
Gets whether the guild is disabled.
Declaration
public bool Disabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
IconHash
Gets the guild icon's hash.
Declaration
public string IconHash { get; }
Property Value
Type | Description |
---|---|
String |
IconUrl
Gets the guild icon's url.
Declaration
public string IconUrl { get; }
Property Value
Type | Description |
---|---|
String |
Name
Gets the name of the guild.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
VanityCode
Gets the guild's vanity invite code.
Declaration
public string VanityCode { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceAcceptAsync()
Joins a guild.
Declaration
public Task<KuracordGuild> AcceptAsync()
Returns
Type | Description |
---|---|
Task<KuracordGuild> | The requested guild. |
Exceptions
Type | Condition |
---|---|
NotFoundException | Thrown when the guild does not exist. |
BadRequestException | Thrown when an invalid parameter was provided. |
ServerErrorException | Thrown when Kuracord is unable to process the request. |
GetIconUrl()
Gets guild's icon URL.
Declaration
public string GetIconUrl()
Returns
Type | Description |
---|---|
String | The URL of the guild's icon. |
ToString()
Returns a string representation of this invite.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | String representation of this invite. |