Table of Contents

Class RestUserGuild

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll
public class RestUserGuild : RestEntity<ulong>, IUserGuild, IDeletable, ISnowflakeEntity, IEntity<ulong>
Inheritance
RestUserGuild
Implements
Inherited Members

Properties

ApproximateMemberCount

Gets the approximate number of members in this guild.

public int? ApproximateMemberCount { get; }

Property Value

int?

Remarks

Only available when getting a guild via REST when with_counts is true.

ApproximatePresenceCount

Gets the approximate number of non-offline members in this guild.

public int? ApproximatePresenceCount { get; }

Property Value

int?

Remarks

Only available when getting a guild via REST when with_counts is true.

CreatedAt

Gets when the snowflake was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

A DateTimeOffset representing when the entity was first created.

Features

Gets the features for this guild.

public GuildFeatures Features { get; }

Property Value

GuildFeatures

A flags enum containing all the features for the guild.

IconUrl

Gets the icon URL associated with this guild, or null if one is not set.

public string IconUrl { get; }

Property Value

string

IsOwner

Returns true if the current user owns this guild.

public bool IsOwner { get; }

Property Value

bool

Name

Gets the name of this guild.

public string Name { get; }

Property Value

string

Permissions

Returns the current user's permissions for this guild.

public GuildPermissions Permissions { get; }

Property Value

GuildPermissions

Methods

DeleteAsync(RequestOptions)

Deletes this object and all its children.

public Task DeleteAsync(RequestOptions options = null)

Parameters

options RequestOptions

The options to be used when sending the request.

Returns

Task

GetCurrentUserGuildMemberAsync(RequestOptions)

public Task<RestGuildUser> GetCurrentUserGuildMemberAsync(RequestOptions options = null)

Parameters

options RequestOptions

Returns

Task<RestGuildUser>

LeaveAsync(RequestOptions)

public Task LeaveAsync(RequestOptions options = null)

Parameters

options RequestOptions

Returns

Task

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.