Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $c[Move all users from a VC! (V1.0)]
- $c[Code made by iamnotjamesbg]
- $c[API made by iamnotjamesbg]
- $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!]
- $c[Enjoy! No vars needed! ^_^]
- $c[=========CODE=========]
- Trigger: <prefix>moveall
- Lang: BDScript 2
- Code:
- $nomention
- $alternativeParsing
- $argsCheck[>1;⚠️ **Invalid Syntax!**
- Example: `(prefix)moveall #channel`]
- $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[1];<#;];>;]]
- $onlyIf[$channelExists[$var[channel]]==true;**❌ The specified channel does not exist, or user is not in a voice channel**]
- $onlyIf[$channelType[$var[channel]]==voice;**❌ The specified channel is not a voice channel.**]
- $cooldown[5s;❌ **Please wait for atleast **%time%** to move all users again!]
- $httpGet[https://jmlite-tts-api-production.up.railway.app/api/moveusr?guild_id=$guildID&voice_id=$var[channel]&moveall=true&token=$getVar[TOKEN]]
- $sendEmbedMessage[$channelID;;$httpResult;;All users has been moved to <#$var[channel]>.;00ff00;;;;;;;no]
- $c[=========END OF CODE=========]
- $c[Final message!]
- $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 :))]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement