GetAvatarUrl() public method

public GetAvatarUrl ( ImageFormat format = ImageFormat.Auto, ushort size = 128 ) : string
format ImageFormat
size ushort
return string
Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User"/> class
 /// </summary>
 /// <param name="user">Discord user</param>
 public User(DW.SocketUser user)
 {
     this.Avatar        = user.GetAvatarUrl();
     this.Discriminator = user.Discriminator;
     this.Id            = user.Id.ToString();
     this.Username      = user.Username;
 }
Beispiel #2
0
 /// <inheritdoc />
 public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
 => SocketUser.GetAvatarUrl(format, size);