Table of Contents

Class AttachmentExtensions

Namespace
Discord
Assembly
Discord.Net.Core.dll
public static class AttachmentExtensions
Inheritance
AttachmentExtensions
Inherited Members

Fields

SpoilerPrefix

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

public const string SpoilerPrefix = "SPOILER_"

Field Value

string

Methods

IsSpoiler(IAttachment)

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

public static bool IsSpoiler(this IAttachment attachment)

Parameters

attachment IAttachment

Returns

bool