summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJokler <jokler@protonmail.com>2020-01-07 17:03:47 +0100
committerJokler <jokler@protonmail.com>2020-01-07 17:03:47 +0100
commitfc62434581e5f7411177e7c30dd1f4543ec354be (patch)
tree539c527e12af1ac01265bb1909f2e27f4bc464ce /src
parent74e9d2a707f31d99865f9c406893c1221df27db4 (diff)
downloadpokebot-fc62434581e5f7411177e7c30dd1f4543ec354be.tar.gz
pokebot-fc62434581e5f7411177e7c30dd1f4543ec354be.zip
Add confirmation message after playlist clear
Diffstat (limited to 'src')
-rw-r--r--src/state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 2797254..bf953ce 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -375,6 +375,8 @@ impl State {
.lock()
.expect("Mutex was not poisoned")
.clear();
+
+ self.send_message(MessageTarget::Channel, "Playlist was cleared");
}
pub fn pause(&self) {