aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-17 10:56:28 -0700
committerZeyla Hellyer <[email protected]>2017-06-17 10:56:28 -0700
commit7fc49d8dd9e253b066ab1b82446d0344f800e2d7 (patch)
tree30a474122f632d8972bf4de1e0aa0ba429567b13 /src
parentRework shard logic and shard handling (diff)
downloadserenity-7fc49d8dd9e253b066ab1b82446d0344f800e2d7.tar.xz
serenity-7fc49d8dd9e253b066ab1b82446d0344f800e2d7.zip
Deprecate a couple Channel methods
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.
Diffstat (limited to 'src')
-rw-r--r--src/model/channel/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/channel/mod.rs b/src/model/channel/mod.rs
index 0887bc2..876f5dd 100644
--- a/src/model/channel/mod.rs
+++ b/src/model/channel/mod.rs
@@ -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)
@@ -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)