dpp::voice_channel_effect
dpp::json_interface< voice_channel_effect >
voice_channel_effect.h
struct friend struct json_interface< voice_channel_effect > json_interface< voice_channel_effect > dpp::voice_channel_effect::json_interface< voice_channel_effect > json_interface< voice_channel_effect >
uint32_t uint32_t dpp::voice_channel_effect::animation_id animation_id dpp::voice_channel_effect::animation_id {0}

The ID of the emoji animation, for emoji reaction and soundboard effects.

This may be empty.

uint8_t uint8_t dpp::voice_channel_effect::animation_type animation_type dpp::voice_channel_effect::animation_type {0}

The type of emoji animation, for emoji reaction and soundboard effects.

This may be empty.

snowflake snowflake dpp::voice_channel_effect::channel_id channel_id dpp::voice_channel_effect::channel_id {0}

The channel id the user who sent the effect is connected to.

dpp::emoji dpp::emoji dpp::voice_channel_effect::emoji emoji dpp::voice_channel_effect::emoji

The emoji of the voice channel effect.

snowflake snowflake dpp::voice_channel_effect::guild_id guild_id dpp::voice_channel_effect::guild_id {0}

The guild id with the channel this effect was sent in.

int32_t int32_t dpp::voice_channel_effect::shard_id shard_id dpp::voice_channel_effect::shard_id {0}

Owning shard.

snowflake snowflake dpp::voice_channel_effect::sound_id sound_id dpp::voice_channel_effect::sound_id {0}

The ID of the soundboard sound, for soundboard effects.

This may be empty.

double double dpp::voice_channel_effect::sound_volume sound_volume dpp::voice_channel_effect::sound_volume {0}

The volume of the soundboard sound, from 0 to 1, for soundboard effects.

This may be empty.

snowflake snowflake dpp::voice_channel_effect::user_id user_id dpp::voice_channel_effect::user_id {0}

The user id who sent the effect.

voice_channel_effect & voice_channel_effect & dpp::voice_channel_effect::fill_from_json_impl (nlohmann::json *j) fill_from_json_impl dpp::voice_channel_effect::fill_from_json_impl nlohmann::json * j

Fill voice channel effect object from json data.

j

JSON data to fill from

voice_channel_effect& Reference to self

dpp::voice_channel_effect::voice_channel_effect
()
voice_channel_effect
dpp::voice_channel_effect::voice_channel_effect

Construct a new voice_channel_effect object.

virtual dpp::voice_channel_effect::~voice_channel_effect
()=default
~voice_channel_effect
dpp::voice_channel_effect::~voice_channel_effect

Destroy the voice_channel_effect object.

std::string std::string dpp::json_interface< voice_channel_effect >::build_json (bool with_id=false) const build_json dpp::json_interface< voice_channel_effect >::build_json bool with_id false

Convert object to json string.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

std::string Json built from the structure

voice_channel_effect & voice_channel_effect & dpp::json_interface< voice_channel_effect >::fill_from_json (nlohmann::json *j) fill_from_json dpp::json_interface< voice_channel_effect >::fill_from_json nlohmann::json * j

Convert object from nlohmann::json.

j

nlohmann::json object

T& Reference to self for fluent calling

auto auto dpp::json_interface< voice_channel_effect >::to_json (bool with_id=false) const to_json dpp::json_interface< voice_channel_effect >::to_json bool with_id false

Convert object to nlohmann::json.

with_id

Whether to include the ID or not

Some fields are conditionally filled, do not rely on all fields being present

json Json built from the structure

Represents a voice channel effect e.g. a soundboard sound or an emoji reaction.

dpp::json_interface< T >
dpp::json_interface< voice_channel_effect >
< voice_channel_effect >
dpp::voice_channel_effect
T
double
dpp::emoji
name
roles
user_id
image_data
flags
dpp::json_interface< T >
dpp::json_interface< emoji >
< emoji >
dpp::json_interface< voice_channel_effect >
< voice_channel_effect >
dpp::managed
id
dpp::snowflake
value
dpp::utility::image_data
data
size
type
dpp::voice_channel_effect
shard_id
channel_id
guild_id
sound_id
user_id
emoji
animation_type
animation_id
sound_volume
image_type
int32_t
std::basic_string< Char >
byte
std::string
std::unique_ptr< T >
ptr
std::unique_ptr< std::byte[]>
ptr
< std::byte[]>
std::vector< T >
elements
std::vector< dpp::snowflake >
elements
< dpp::snowflake >
uint32_t
uint64_t
uint8_t
- dpp::voice_channel_effect
  animation_id
- dpp::voice_channel_effect
  animation_type
- dpp::voice_channel_effect
  build_json
- dpp::voice_channel_effect
  channel_id
- dpp::voice_channel_effect
  emoji
- dpp::voice_channel_effect
  fill_from_json
- dpp::voice_channel_effect
  fill_from_json_impl
- dpp::voice_channel_effect
  guild_id
- dpp::voice_channel_effect
  json_interface< voice_channel_effect >
- dpp::voice_channel_effect
  shard_id
- dpp::voice_channel_effect
  sound_id
- dpp::voice_channel_effect
  sound_volume
- dpp::voice_channel_effect
  to_json
- dpp::voice_channel_effect
  user_id
- dpp::voice_channel_effect
  voice_channel_effect
- dpp::voice_channel_effect
  ~voice_channel_effect