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

This commit is contained in:
2021-09-16 22:33:19 +01:00
parent f75af926f5
commit e3c583a0e5
4 changed files with 116 additions and 184 deletions

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());
}
}
}