Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[Move users from a voice channel! (V1.4)]
- $c[Changelog
- - Fixed channel detections when the channel doesn't exists]
- $c[Made by iamnotjamesbg]
- $c[API by iamnotjamesbg]
- $c[The API endpoint is still in beta, bugs may happen!!]
- $c[Hello!! I'm back from TTS API, but now I'm back! with a move a user from another channel!]
- $c[It's simple! just do "<prefix>move @mention #Channel"]
- $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!]
- $c[======CODE======]
- Trigger: <prefix>move
- BDScript 2
- Code:
- $nomention
- $argsCheck[>1;⚠️ **Invalid Syntax!**
- Example: `(prefix)move @mention #channel`]
- $onlyIf[$mentioned[1;no]!=;**❌ Please mention a user to move.**]
- $onlyPerms[movemembers;**❌ You need the `Move Members` permission to use this command.**]
- $onlyBotPerms[movemembers;**❌ I need the `Move Members` permission to move users.**]
- $var[channel;$replaceText[$replaceText[$message[2];<#;];>;]]
- $onlyIf[$channelExists[$var[channel]]!=false;**❌ The specified channel does not exist**]
- $onlyIf[$channelType[$var[channel]]==voice;**❌ The specified channel is not a voice channel.**]
- $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]]
- $sendEmbedMessage[$channelID;;$httpResult;;<@$mentioned[1;no]> has been moved to <#$var[channel]>.;00ff00;;;;;;;no]
- $c[======END OF CODE======]
- $c[Final note]
- $c[The API is still in beta, but it should work most of the time!]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement