Discore
Show / Hide Table of Contents

Class DiscordImageData

Inheritance
object
DiscordImageData
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Discore
Assembly: Discore.dll
Syntax
public class DiscordImageData

Constructors

Name Description
DiscordImageData(ArraySegment<byte>, string)

Creates image data from raw image data.

DiscordImageData(byte[], string)

Creates image data from raw image data.

DiscordImageData(string, string)

Creates image data from the base64 encoded string of an image.

Fields

Name Description
None

Gets a DiscordImageData instance representing a cleared image. This can be used to remove avatars from guilds, users, etc.

Properties

Name Description
Base64Data

Gets the image data as a base64 encoded string.

MediaType

Gets the media type of the image data (e.g. image/jpeg).

Methods

Name Description
FromDataUriScheme(string)
ToDataUriScheme()

Converts the image data to the following format:

data:MEDIA_TYPE;base64,BASE64_IMAGE_DATA

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX