updated slash cmd builder. soundboard command no longer allows multiple of the same button
This commit is contained in:
1 parent
f75af926f5
commit
e3c583a0e5
4 files changed
+116
-184
No files matched your search
+3
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user