aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/guild_channel.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-09 14:19:09 +0200
committeracdenisSK <[email protected]>2017-09-09 14:19:09 +0200
commit870a2a5f821c9b0624cad03d873d04a8aad47082 (patch)
tree16fa4f0748b61fe189d4b47a184e6ee09cad7cc9 /src/model/channel/guild_channel.rs
parentImplement categories (diff)
downloadserenity-870a2a5f821c9b0624cad03d873d04a8aad47082.tar.xz
serenity-870a2a5f821c9b0624cad03d873d04a8aad47082.zip
`parent_id` -> `category_id`
Diffstat (limited to 'src/model/channel/guild_channel.rs')
-rw-r--r--src/model/channel/guild_channel.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs
index b713e18..8ae50a6 100644
--- a/src/model/channel/guild_channel.rs
+++ b/src/model/channel/guild_channel.rs
@@ -25,7 +25,8 @@ pub struct GuildChannel {
/// The default channel Id shares the Id of the guild and the default role.
pub id: ChannelId,
/// Whether this guild channel belongs in a category.
- pub parent_id: Option<ChannelId>,
+ #[serde(rename = "parent_id")]
+ pub category_id: Option<ChannelId>,
/// The bitrate of the channel.
///
/// **Note**: This is only available for voice channels.