1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use serde::{Deserialize, Serialize};
use super::user::APIUser;
/**
* Types extracted from https://discord.com/developers/docs/resources/soundboard
*/
/**
* @see {@link https://discord.com/developers/docs/resources/soundboard#soundboard-sound-object}
*/
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct APISoundboardSound {
/**
* The name of this sound
*/
pub name: String,
/**
* The id of this sound
*/
pub sound_id: String,
/**
* The volume of this sound, from 0 to 1
*/
pub volume: f64,
/**
* The id of this sound's custom emoji
*/
pub emoji_id: Option<String>,
/**
* The unicode character of this sound's standard emoji
*/
pub emoji_name: Option<String>,
/**
* The id of the guild that this sound is in
*/
pub guild_id: Option<String>,
/**
* Whether this sound can be used (for guild sounds), may be false due to loss of Server Boosts
*/
pub available: bool,
/**
* The user who created this sound
*/
pub user: Option<APIUser>,
}