Concord - C Discord API library
A Discord API wrapper library written in C
discord_attachment Struct Reference

#include <channel.h>

Data Fields

char * content
 
u64snowflake id
 
char * filename
 
char * description
 
char * content_type
 
size_t size
 
char * url
 
char * proxy_url
 
int height
 
int width
 
bool ephemeral
 
int duration_secs
 
char * waveform
 
u64bitmask flags
 

Field Documentation

◆ content

char* discord_attachment::content

the file contents

◆ id

u64snowflake discord_attachment::id

attachment ID

◆ filename

char* discord_attachment::filename

name of file attached

◆ description

char* discord_attachment::description

description for the file

◆ content_type

char* discord_attachment::content_type

the attachment media type

◆ size

size_t discord_attachment::size

size of file in bytes

◆ url

char* discord_attachment::url

source url of file

◆ proxy_url

char* discord_attachment::proxy_url

proxied url of file

◆ height

int discord_attachment::height

height of file (if image)

◆ width

int discord_attachment::width

width of file (if image)

◆ ephemeral

bool discord_attachment::ephemeral

whether this attachment is ephemeral

◆ duration_secs

int discord_attachment::duration_secs

the duration of the audio file

◆ waveform

char* discord_attachment::waveform

base64 encoded bytearray representing a sampled waveform

◆ flags

u64bitmask discord_attachment::flags

attachment flags combined as a bitfield


The documentation for this struct was generated from the following file: