Skip to main content

Class RestUserGuild

Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestUserGuild : RestEntity<ulong>, IUserGuild, IDeletable, ISnowflakeEntity, IEntity<ulong>

Properties​

Name​

Gets the name of this guild.

View Source​
Declaration
public string Name { get; }

IsOwner​

Returns true if the current user owns this guild.

View Source​
Declaration
public bool IsOwner { get; }

Permissions​

Returns the current user's permissions for this guild.

View Source​
Declaration
public GuildPermissions Permissions { get; }

CreatedAt​

Gets when the snowflake was created.

View Source​
Declaration
public DateTimeOffset CreatedAt { get; }

IconUrl​

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

View Source​
Declaration
public string IconUrl { get; }

Methods​

LeaveAsync(RequestOptions)​

View Source​
Declaration
public async Task LeaveAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
Discord.RequestOptionsoptions

DeleteAsync(RequestOptions)​

Deletes this object and all its children.

View Source​
Declaration
public async Task DeleteAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

ToString()​

View Source​
Declaration
public override string ToString()
Returns​

System.String

Implements​