Skip to content

Variable: MediaType ​

ts
const MediaType: object;

Defined in: types/const.ts:198

Types of media files that can be uploaded

  • SERVER_ICON: Server icon image
  • SERVER_BANNER: Server banner image
  • USER_ICON: User icon image
  • USER_BANNER: User banner image
  • MESSAGE_ATTACHMENT: Message attachment file
  • CUSTOM_EMOJI: Custom emoji image, usable in messages and reactions
  • USER_BACKGROUND: The tall image behind a user's full-height profile panel
  • BADGE_ICON: A badge's picture, for server and instance badges
  • SOUNDBOARD_SOUND: A short clip on a server's soundboard, played into voice calls

Type Declaration ​

NameTypeDefault valueDefined in
BADGE_ICON"badge_icon""badge_icon"types/const.ts:206
CUSTOM_EMOJI"custom_emoji""custom_emoji"types/const.ts:204
MESSAGE_ATTACHMENT"message_attachment""message_attachment"types/const.ts:203
SERVER_BANNER"server_banner""server_banner"types/const.ts:200
SERVER_ICON"server_icon""server_icon"types/const.ts:199
SOUNDBOARD_SOUND"soundboard_sound""soundboard_sound"types/const.ts:207
USER_BACKGROUND"user_background""user_background"types/const.ts:205
USER_BANNER"user_banner""user_banner"types/const.ts:202
USER_ICON"user_icon""user_icon"types/const.ts:201

Released under the GNU Affero General Public License v3.0.