Inherits
Object
Class User
Represents a User
Properties
Id
Gets the id.
Declaration
public int Id {get; }
Property Value
Type | Description |
---|---|
Int32 | The user's id. |
Name
Gets or sets the name.
Declaration
public string Name {get; }
Property Value
Type | Description |
---|---|
String | The name of the user. |
Discriminator
Gets the user's discriminator.
Declaration
public string Discriminator {get; }
Property Value
Type | Description |
---|---|
String | A four character numeric discriminator. |
DisplayName
Gets the user's display name
Declaration
public string DisplayName {get; }
Remarks
This property always returns the Name of the user. This property's behaviour changes in GuildUser
Property Value
Type | Description |
---|---|
String | The user's display name. |
IsBot
Checks if the user is a bot user.
Declaration
public bool IsBot {get; }
Property Value
Type | Description |
---|---|
Boolean | true if the user is a bot, false otherwise. |
CreationDate
Gets the user's creation date.
Declaration
public DateTime CreationDate {get; }
Property Value
Type | Description |
---|---|
DateTime | The creation date in UTC. |
Mention
Gets a string that allows you to mention the user
Declaration
public string Mention {get; }
Property Value
Type | Description |
---|---|
String | String that mentions the user in messages. |
Methods
GetGuilds()
Gets all guilds the user is in.
Declaration
public Guild[] GetGuilds()
Returns
Type | Description |
---|---|
Guild[] | The guild the user belongs to |