diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/guild/guild_id.rs | 18 | ||||
| -rw-r--r-- | src/model/guild/mod.rs | 16 | ||||
| -rw-r--r-- | src/model/guild/partial_guild.rs | 16 |
3 files changed, 0 insertions, 50 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs index 4d6ba9b..350993a 100644 --- a/src/model/guild/guild_id.rs +++ b/src/model/guild/guild_id.rs @@ -303,24 +303,6 @@ impl GuildId { http::edit_role(self.0, role_id.into().0, &f(EditRole::default()).0) } - /// Gets an emoji in the guild by Id. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emoji<E: Into<EmojiId>>(&self, emoji_id: E) -> Result<Emoji> { - http::get_emoji(self.0, emoji_id.into().0) - } - - /// Gets a list of all of the guild's emojis. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emojis(&self) -> Result<Vec<Emoji>> { http::get_emojis(self.0) } - /// Search the cache for the guild. #[cfg(feature = "cache")] pub fn find(&self) -> Option<Arc<RwLock<Guild>>> { CACHE.read().unwrap().guild(*self) } diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index a690003..dee97af 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -605,22 +605,6 @@ impl Guild { self.id.edit_role(role_id, f) } - /// Gets an emoji in the guild by Id. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emoji<E: Into<EmojiId>>(&self, emoji_id: E) -> Result<Emoji> { self.id.emoji(emoji_id) } - - /// Gets a list of all of the guild's emojis. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emojis(&self) -> Result<Vec<Emoji>> { self.id.emojis() } - /// Gets a partial amount of guild data by its Id. /// /// Requires that the current user be in the guild. diff --git a/src/model/guild/partial_guild.rs b/src/model/guild/partial_guild.rs index 84d48d3..02cdbf5 100644 --- a/src/model/guild/partial_guild.rs +++ b/src/model/guild/partial_guild.rs @@ -284,22 +284,6 @@ impl PartialGuild { self.id.edit_nickname(new_nickname) } - /// Gets an emoji in the guild by Id. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emoji<E: Into<EmojiId>>(&self, emoji_id: E) -> Result<Emoji> { self.id.emoji(emoji_id) } - - /// Gets a list of all of the guild's emojis. - /// - /// Requires the [Manage Emojis] permission. - /// - /// [Manage Emojis]: permissions/constant.MANAGE_EMOJIS.html - #[inline] - pub fn emojis(&self) -> Result<Vec<Emoji>> { self.id.emojis() } - /// Gets a partial amount of guild data by its Id. /// /// Requires that the current user be in the guild. |