updated slash cmd builder. soundboard command no longer allows multiple of the same button

This commit is contained in:
jude committed 2021-09-16 22:33:19 +01:00
1 parent f75af926f5
commit e3c583a0e5
4 files changed
+116 -184

No files matched your search

+3 -1
View File
@@ -372,7 +372,9 @@ pub async fn soundboard(
.await?;
if let Some(sound) = search.first() {
sounds.push(sound.clone());
if !sounds.contains(sound) {
sounds.push(sound.clone());
}
}
}