Advertisement
IamnotJamesBG

Move users from another VC! (V1.4)

May 18th, 2025 (edited)
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. $c[Move users from a voice channel! (V1.4)]
  2. $c[Changelog
  3. - Fixed channel detections when the channel doesn't exists]
  4. $c[Made by iamnotjamesbg]
  5. $c[API by iamnotjamesbg]
  6. $c[The API endpoint is still in beta, bugs may happen!!]
  7. $c[Hello!! I'm back from TTS API, but now I'm back! with a move a user from another channel!]
  8. $c[It's simple! just do "<prefix>move @mention #Channel"]
  9. $c[I know this might not be the best structure of code I made, but still! since bdfd doesn't support, voice channel detection like $voiceID, it's not possible to detect users, for now!]
  10.  
  11. $c[======CODE======]
  12. Trigger: <prefix>move
  13. BDScript 2
  14. Code:
  15. $nomention
  16. $argsCheck[>1;⚠️ **Invalid Syntax!**
  17. Example: `(prefix)move @mention #channel`]
  18. $onlyIf[$mentioned[1;no]!=;**❌ Please mention a user to move.**]
  19.  
  20. $onlyPerms[movemembers;**❌ You need the `Move Members` permission to use this command.**]
  21. $onlyBotPerms[movemembers;**❌ I need the `Move Members` permission to move users.**]
  22.  
  23. $var[channel;$replaceText[$replaceText[$message[2];<#;];>;]]
  24.  
  25. $onlyIf[$channelExists[$var[channel]]!=false;**❌ The specified channel does not exist**]
  26. $onlyIf[$channelType[$var[channel]]==voice;**❌ The specified channel is not a voice channel.**]
  27.  
  28.  
  29. $httpGet[https://jmlite-tts-api-production.up.railway.app/api/moveusr?user_id=$mentioned[1;no]&guild_id=$guildID&voice_id=$var[channel]&token=$getVar[TOKEN]]
  30.  
  31. $sendEmbedMessage[$channelID;;$httpResult;;<@$mentioned[1;no]> has been moved to <#$var[channel]>.;00ff00;;;;;;;no]
  32. $c[======END OF CODE======]
  33.  
  34. $c[Final note]
  35. $c[The API is still in beta, but it should work most of the time!]
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement