Search Results for

    Show / Hide Table of Contents

    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
    System.Object
    DiscordGuildPreview
    Implements
    IDiscordGuildPreview
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Rest.Models.Guild
    Assembly: Color-Chan.Discord.Rest.dll
    Syntax
    public class DiscordGuildPreview : IDiscordGuildPreview

    Constructors

    | Improve this Doc View Source

    DiscordGuildPreview(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 Source

    ApproximateMemberCount

    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>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Description

    The description for the guild, if the guild is discoverable.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    DiscoverySplash

    Discovery splash hash; only present for guilds with the "DISCOVERABLE" feature.

    Declaration
    public string DiscoverySplash { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Emojis

    Custom guild emojis.

    Declaration
    public IEnumerable<IDiscordEmoji> Emojis { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordEmoji>
    | Improve this Doc View Source

    Icon

    Icon hash.

    Declaration
    public string Icon { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Id

    Guild id.

    Declaration
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Name

    Guild name (2-100 characters, excluding trailing and leading whitespace).

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Roles

    Roles in the guild.

    Declaration
    public IEnumerable<IDiscordGuildRole> Roles { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordGuildRole>
    | Improve this Doc View Source

    Splash

    Splash hash.

    Declaration
    public string Splash { get; set; }
    Property Value
    Type Description
    System.String

    Implements

    IDiscordGuildPreview
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX