diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-09 08:23:21 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-09 08:23:21 -0700 |
| commit | 1c138a357b37e3bd8002109cfb9a8da94a53810e (patch) | |
| tree | 3256df54f6b31e0422848ea6bcc1d35e58b27eee /src/model/channel/guild_channel.rs | |
| parent | `parent_id` -> `category_id` (diff) | |
| download | serenity-1c138a357b37e3bd8002109cfb9a8da94a53810e.tar.xz serenity-1c138a357b37e3bd8002109cfb9a8da94a53810e.zip | |
Apply rustfmt + fix tests
Diffstat (limited to 'src/model/channel/guild_channel.rs')
| -rw-r--r-- | src/model/channel/guild_channel.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs index 8ae50a6..3e33102 100644 --- a/src/model/channel/guild_channel.rs +++ b/src/model/channel/guild_channel.rs @@ -24,13 +24,13 @@ 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. - #[serde(rename = "parent_id")] - pub category_id: Option<ChannelId>, /// The bitrate of the channel. /// /// **Note**: This is only available for voice channels. pub bitrate: Option<u64>, + /// Whether this guild channel belongs in a category. + #[serde(rename = "parent_id")] + pub category_id: Option<ChannelId>, /// The Id of the guild the channel is located in. /// /// If this matches with the [`id`], then this is the default text channel. |