Skip to content

Commit

Permalink
Deprecate a couple Channel methods
Browse files Browse the repository at this point in the history
Deprecate `Channel::delete_messages` and `Channel::delete_permission`.

These methods aren't available on all of the variants' types, so they
shouldn't be on the Channel either.
  • Loading branch information
Zeyla Hellyer committed Jun 17, 2017
1 parent 601704a commit 7fc49d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/model/channel/mod.rs
Expand Up @@ -118,6 +118,7 @@ impl Channel {
/// this method.
///
/// [Manage Messages]: permissions/constant.MANAGE_MESSAGES.html
#[deprecated(since="0.2.0", note="Use the inner channel's `delete_messages` method instead.")]
#[inline]
pub fn delete_messages(&self, message_ids: &[MessageId]) -> Result<()> {
self.id().delete_messages(message_ids)
Expand All @@ -129,6 +130,7 @@ impl Channel {
/// **Note**: Requires the [Manage Channel] permission.
///
/// [Manage Channel]: permissions/constant.MANAGE_CHANNELS.html
#[deprecated(since="0.2.0", note="Use the inner channel's `delete_permission` method instead.")]
#[inline]
pub fn delete_permission(&self, permission_type: PermissionOverwriteType) -> Result<()> {
self.id().delete_permission(permission_type)
Expand Down

0 comments on commit 7fc49d8

Please sign in to comment.