Class RestUserGuild
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Discord.Rest
Assembly: Discord.Net.Rest.dll
Syntax
public class RestUserGuild : RestEntity<ulong>, IUserGuild, IDeletable, ISnowflakeEntity, IEntity<ulong>
Properties
| Improve this Doc View SourceCreatedAt
Gets when the snowflake was created.
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTimeOffset | A System.DateTimeOffset representing when the entity was first created. |
IconUrl
Gets the icon URL associated with this guild, or null if one is not set.
Declaration
public string IconUrl { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
IsOwner
Returns true if the current user owns this guild.
Declaration
public bool IsOwner { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Name
Gets the name of this guild.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Permissions
Returns the current user's permissions for this guild.
Declaration
public GuildPermissions Permissions { get; }
Property Value
| Type | Description |
|---|---|
| GuildPermissions |
Methods
| Improve this Doc View SourceDeleteAsync(RequestOptions)
Deletes this object and all its children.
Declaration
public Task DeleteAsync(RequestOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestOptions | options | The options to be used when sending the request. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
LeaveAsync(RequestOptions)
Declaration
public Task LeaveAsync(RequestOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()