package Ġcom . bl itz offline . alph am usic . commands Ċ Ċ import Ġcom . bl itz offline . alph am usic . Alpha Music Ċ import Ġcom . bl itz offline . alph am usic . utils . terminate Ċ import Ġdev . tri ump ht e am . cmd . core . Base Command Ċ import Ġdev . tri ump ht e am . cmd . core . annotation . Command Ċ import Ġdev . tri ump ht e am . cmd . core . annotation . Default Ċ import Ġdev . tri ump ht e am . cmd . core . annotation . Description Ċ import Ġdev . tri ump ht e am . cmd . core . annotation . Requirement Ċ import Ġdev . tri ump ht e am . cmd . core . annotation . Requirements Ċ import Ġdev . tri ump ht e am . cmd . slash . sender . Slash Sender Ċ Ċ @ Command (" remove - dup es ") Ċ @ Description (" Remove Ġall Ġduplicates Ġfrom Ġthe Ġqueue !") Ċ class ĠRemove Dup es Command ( private Ġval Ġbot : ĠAlpha Music ) Ġ: ĠBase Command () Ġ{ ĊĠĠĠ Ġ@ Default ĊĠĠĠ Ġ@ Requirements ( ĊĠĠĠĠĠĠĠ ĠRequirement (" command _ in _ guild ", Ġmessage Key Ġ= Ġ" command _ not _ in _ guild "), ĊĠĠĠĠĠĠĠ ĠRequirement (" bot _ in _ vc ", Ġmessage Key Ġ= Ġ" bot _ not _ in _ vc "), ĊĠĠĠĠĠĠĠ ĠRequirement (" admin ", Ġmessage Key Ġ= Ġ" admin "), ĊĠĠĠ Ġ) ĊĠĠĠ Ġfun ĠSl ash Sender . remove Dup es () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġguild Ġ= Ġguild Ġ?: Ġreturn ĊĠĠĠĠĠĠĠ Ġval Ġmusic Manager Ġ= Ġbot . get Music Manager ( guild ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( music Manager . audio Handler . size () Ġ== Ġ 0 ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn Ġevent . terminate (" There Ġare Ġno Ġsong Ġqueued Ġcurrently !") ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġwhen ( music Manager . audio Handler . remove Dup es ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠ 0 Ġ-> Ġevent . terminate (" No Ġdup es Ġfound !") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġevent . terminate (" Successfully Ġremoved Ġall Ġduplicates !") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }