private static System.Drawing.Imaging.ImageFormat GetImageFormat(Discord.ImageFormat format) => format switch {
public static Bitmap GetSetAvatarBitmap(SocketUser user, string path, ushort size = 32, DiscordImageFormat format = DiscordImageFormat.Auto, string fallback = null) => GetSetAvatarBitmap(user.GetAvatarUrl(format, size), path, fallback);
public static Bitmap GetAvatarBitmap(SocketUser user, ushort size = 32, DiscordImageFormat format = DiscordImageFormat.Auto) => GetAvatarBitmap(user.GetAvatarUrl(format, size));
public static Bitmap GetSetAvatarBitmap(SocketUser user, ushort size = 32, DiscordImageFormat format = DiscordImageFormat.Auto) => GetSetAvatarBitmap(user, $"{Directory.CreateDirectory($".//data//{user.Id}//resources//").FullName}avatar{format.GetExtensionName()}", size, format);
public static void TrySaveAvatar(SocketUser user, string path, ushort size = 32, DiscordImageFormat format = DiscordImageFormat.Auto) => TrySaveAvatar(user.GetAvatarUrl(format, size), path);