Advertisement
IamnotJamesBG

Move all users from a VC! (V1.0)

May 19th, 2025
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. $c[Move all users from a VC! (V1.0)]
  2. $c[Code made by iamnotjamesbg]
  3. $c[API made by iamnotjamesbg]
  4. $c[It's awfully similar to my moving users, but this time, when you provide a voice channel only, it'll just move all users to the desired channel at once!]
  5. $c[Enjoy! No vars needed! ^_^]
  6.  
  7. $c[=========CODE=========]
  8. Trigger: <prefix>moveall
  9. Lang: BDScript 2
  10. Code:
  11. $nomention
  12. $alternativeParsing
  13. $argsCheck[>1;⚠️ **Invalid Syntax!**
  14. Example: `(prefix)moveall #channel`]
  15.  
  16. $onlyPerms[movemembers;**❌ You need the `Move Members` permission to use this command.**]
  17. $onlyBotPerms[movemembers;**❌ I need the `Move Members` permission to move users.**]
  18.  
  19. $var[channel;$replaceText[$replaceText[$message[1];<#;];>;]]
  20. $onlyIf[$channelExists[$var[channel]]==true;**❌ The specified channel does not exist, or user is not in a voice channel**]
  21. $onlyIf[$channelType[$var[channel]]==voice;**❌ The specified channel is not a voice channel.**]
  22. $cooldown[5s;❌ **Please wait for atleast **%time%** to move all users again!]
  23.  
  24. $httpGet[https://jmlite-tts-api-production.up.railway.app/api/moveusr?guild_id=$guildID&voice_id=$var[channel]&moveall=true&token=$getVar[TOKEN]]
  25.  
  26. $sendEmbedMessage[$channelID;;$httpResult;;All users has been moved to <#$var[channel]>.;00ff00;;;;;;;no]
  27. $c[=========END OF CODE=========]
  28.  
  29. $c[Final message!]
  30. $c[Please make sure not to abuse my api, since I pour all my hardwork in there, and to avoid getting limited by railway! so please, use it with responsibility :))]
Tags: discord api BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement