C# Class Discord.WebSocket.SocketUser

Inheritance: SocketEntity, IUser
Datei anzeigen Open project: Still34/Discord.Net Class Usage Examples

Private Properties

Property Type Description
Clone SocketUser
SocketUser System
Update bool

Public Methods

Method Description
GetAvatarUrl ( ImageFormat format = ImageFormat.Auto, ushort size = 128 ) : string
GetDefaultAvatarUrl ( ) : string
GetOrCreateDMChannelAsync ( RequestOptions options = null ) : Task
ToString ( ) : string

Gets the full name of the user (e.g. Example#0001).

Private Methods

Method Description
Clone ( ) : SocketUser
SocketUser ( Discord.WebSocket.DiscordSocketClient discord, id ) : System
Update ( Discord.WebSocket.ClientState state, Discord.API.User model ) : bool

Method Details

GetAvatarUrl() public method

public GetAvatarUrl ( ImageFormat format = ImageFormat.Auto, ushort size = 128 ) : string
format ImageFormat
size ushort
return string

GetDefaultAvatarUrl() public method

public GetDefaultAvatarUrl ( ) : string
return string

GetOrCreateDMChannelAsync() public method

public GetOrCreateDMChannelAsync ( RequestOptions options = null ) : Task
options RequestOptions
return Task

ToString() public method

Gets the full name of the user (e.g. Example#0001).
public ToString ( ) : string
return string