diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-01 20:29:11 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-01 20:39:40 -0700 |
| commit | 40031d9ec55b1a4dd6e350a7566ea230751a54ed (patch) | |
| tree | 0bf2b95623dc9416e9ac12444ceb89067f2178fb /src/model/guild/mod.rs | |
| parent | Add case insensitivity (diff) | |
| download | serenity-40031d9ec55b1a4dd6e350a7566ea230751a54ed.tar.xz serenity-40031d9ec55b1a4dd6e350a7566ea230751a54ed.zip | |
Remove more non-bot user endpoints
These include the following functions removed:
- `http::get_application_info`
- `http::get_applications`
- `http::get_emoji`
- `http::get_emojis`
- `model::Guild::{emoji, emojis}`
- `model::GuildId::{emoji, emojis}`
- `model::PartialGuild::{emoji, emojis}`
Diffstat (limited to 'src/model/guild/mod.rs')
| -rw-r--r-- | src/model/guild/mod.rs | 16 |
1 files changed, 0 insertions, 16 deletions
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. |