Skip to main content

Class AttachmentExtensions

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public static class AttachmentExtensions

Fields​

SpoilerPrefix​

The prefix applied to files to indicate that it is a spoiler.

View Source​
Declaration
public const string SpoilerPrefix = "SPOILER_"

Methods​

IsSpoiler(IAttachment)​

Gets whether the message's attachments are spoilers or not.

View Source​
Declaration
public static bool IsSpoiler(this IAttachment attachment)
Returns​

System.Boolean

Parameters​
TypeName
Discord.IAttachmentattachment