namespace Discord { public static class AttachmentExtensions { /// /// The prefix applied to files to indicate that it is a spoiler. /// public const string SpoilerPrefix = "SPOILER_"; /// /// Gets whether the message's attachments are spoilers or not. /// public static bool IsSpoiler(this IAttachment attachment) => attachment.Filename.StartsWith(SpoilerPrefix); } }