diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-10 11:28:44 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-10 11:29:18 -0800 |
| commit | 524b8f8ab5153e20ad86be2df7fba6bbed159b7c (patch) | |
| tree | 84fd2aa501cf154f4c54d221a2ea7f9fee9e8ec8 /src/framework/mod.rs | |
| parent | Add missing `correct roles`-checks in help-commands (#249) (diff) | |
| download | serenity-524b8f8ab5153e20ad86be2df7fba6bbed159b7c.tar.xz serenity-524b8f8ab5153e20ad86be2df7fba6bbed159b7c.zip | |
Remove `is_bot` boolean from framework
The framework no longer needs the `is_bot` boolean state, since serenity
now only supports bot users.
Diffstat (limited to 'src/framework/mod.rs')
| -rw-r--r-- | src/framework/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/framework/mod.rs b/src/framework/mod.rs index 9f72dc6..47141c1 100644 --- a/src/framework/mod.rs +++ b/src/framework/mod.rs @@ -73,7 +73,7 @@ pub trait Framework { #[doc(hidden)] #[cfg(feature = "standard_framework")] - fn update_current_user(&mut self, UserId, bool) {} + fn update_current_user(&mut self, UserId) {} } impl<F: Framework + ?Sized> Framework for Box<F> { @@ -82,8 +82,8 @@ impl<F: Framework + ?Sized> Framework for Box<F> { } #[cfg(feature = "standard_framework")] - fn update_current_user(&mut self, id: UserId, is_bot: bool) { - (**self).update_current_user(id, is_bot); + fn update_current_user(&mut self, id: UserId) { + (**self).update_current_user(id); } } @@ -93,8 +93,8 @@ impl<'a, F: Framework + ?Sized> Framework for &'a mut F { } #[cfg(feature = "standard_framework")] - fn update_current_user(&mut self, id: UserId, is_bot: bool) { - (**self).update_current_user(id, is_bot); + fn update_current_user(&mut self, id: UserId) { + (**self).update_current_user(id); } } |