Table of Contents

Property FileTypes

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

FileTypes

The file types permissible to upload using this component. This takes any dot-prefixed extensions, or one of the following values:

  • "image": png, gif, jpg, jpeg, jfif, webp, avif,
  • "video": mp4, mov, qt, webm,
  • "audio": mp3, m4a, wav, ogg, opus, flac

    Note that the above lists are not set in stone and should not be hardcoded.
[JsonProperty("file_types", DefaultValueHandling = DefaultValueHandling.Ignore)]
public IReadOnlyList<string>? FileTypes { get; }

Property Value

IReadOnlyList<string>