Method GetGuildAvatarUrl
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetGuildAvatarUrl(ImageFormat, ushort)
Constructs the url for a guild member's avatar, defaulting to the user's avatar if none is set.
public string GetGuildAvatarUrl(ImageFormat imageFormat, ushort imageSize = 1024)
Parameters
imageFormat
ImageFormatThe image format of the avatar to get.
imageSize
ushortThe maximum size of the avatar. Must be a power of two, minimum 16, maximum 4096.
Returns
- string
The URL of the user's avatar.