Struct MediaGalleryItemProperties
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
public struct MediaGalleryItemProperties
- Inherited Members
Constructors
MediaGalleryItemProperties()
Initializes a new instance of the MediaGalleryItemProperties.
public MediaGalleryItemProperties()
MediaGalleryItemProperties(UnfurledMediaItemProperties, string, bool)
Initializes a new instance of the MediaGalleryItemProperties.
public MediaGalleryItemProperties(UnfurledMediaItemProperties media, string description = null, bool isSpoiler = false)
Parameters
media
UnfurledMediaItemPropertiesdescription
stringisSpoiler
bool
Fields
MaxDescriptionLength
The maximum length of the description.
public const int MaxDescriptionLength = 256
Field Value
Properties
Description
Gets or sets the description of the media item.
public string Description { readonly get; set; }
Property Value
IsSpoiler
Gets or sets whether the media item is a spoiler.
public bool IsSpoiler { readonly get; set; }
Property Value
Media
Gets or sets the media item to display.
public UnfurledMediaItemProperties Media { readonly get; set; }