diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-20 09:11:37 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-20 09:11:37 -0800 |
| commit | 7f4dbc292d7f6500e93b20bdb7456eec84671d6f (patch) | |
| tree | 6cd22f77ed0916b98f96b2191229be73a677fb56 /src/model/channel/guild_channel.rs | |
| parent | Fix no-cache compilation (diff) | |
| download | serenity-7f4dbc292d7f6500e93b20bdb7456eec84671d6f.tar.xz serenity-7f4dbc292d7f6500e93b20bdb7456eec84671d6f.zip | |
Fix compilation for some feature combinations
Diffstat (limited to 'src/model/channel/guild_channel.rs')
| -rw-r--r-- | src/model/channel/guild_channel.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/channel/guild_channel.rs b/src/model/channel/guild_channel.rs index ef14d07..785ba8a 100644 --- a/src/model/channel/guild_channel.rs +++ b/src/model/channel/guild_channel.rs @@ -105,6 +105,7 @@ impl GuildChannel { /// ```rust,ignore /// let invite = channel.create_invite(|i| i.max_uses(5)); /// ``` + #[cfg(feature = "utils")] pub fn create_invite<F>(&self, f: F) -> Result<RichInvite> where F: FnOnce(CreateInvite) -> CreateInvite { #[cfg(feature = "cache")] @@ -301,6 +302,7 @@ impl GuildChannel { /// ```rust,ignore /// channel.edit(|c| c.name("test").bitrate(86400)); /// ``` + #[cfg(feature = "utils")] pub fn edit<F>(&mut self, f: F) -> Result<()> where F: FnOnce(EditChannel) -> EditChannel { #[cfg(feature = "cache")] |