Class DiscordGuildPreview
Represents a discord Guild Preview Structure API model. Docs: https://discord.com/developers/docs/resources/guild#guild-preview-object-guild-preview-structure
Inheritance
Implements
Inherited Members
Namespace: Color_Chan.Discord.Rest.Models.Guild
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordGuildPreview : IDiscordGuildPreview
Constructors
| Improve this Doc View SourceDiscordGuildPreview(DiscordGuildPreviewData)
Initializes a new DiscordGuildPreview
Declaration
public DiscordGuildPreview(DiscordGuildPreviewData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildPreviewData | data | The data needed to create the DiscordGuildPreview. |
Properties
| Improve this Doc View SourceApproximateMemberCount
Approximate number of members in this guild, returned from the GET /guilds/{id} endpoint when with_counts is true.
Declaration
public int? ApproximateMemberCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
ApproximatePresenceCount
Approximate number of non-offline members in this guild, returned from the GET /guilds/{id} endpoint when with_counts is true.
Declaration
public int? ApproximatePresenceCount { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Description
The description for the guild, if the guild is discoverable.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DiscoverySplash
Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature.
Declaration
public string DiscoverySplash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Emojis
Custom guild emojis.
Declaration
public IEnumerable<IDiscordEmoji> Emojis { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordEmoji> |
Icon
Icon hash.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Guild id.
Declaration
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
Guild name (2-100 characters, excluding trailing and leading whitespace).
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Roles
Roles in the guild.
Declaration
public IEnumerable<IDiscordGuildRole> Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDiscordGuildRole> |
Splash
Splash hash.
Declaration
public string Splash { get; set; }
Property Value
Type | Description |
---|---|
System.String |