Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://discord.gg/GfUYzXnA
- // Setup command
- // VARIABLES (add in the app): //
- // wchannel // Value 0
- // wrole // Value 0
- //First command//
- // Trigger: (your prefix)setup // you can change the name if you want!
- // CODE: //
- $nomention
- $onlyPerms[manageroles;You need manage roles permissions to setup the autorole]
- $onlyIf[$mentionedChannels[<;yes]!=;Mention a channel!]
- $onlyIf[$mentionedRoles[<]!=;Mention a role!]
- $color[$random[100000;999999]]
- $author[Autorole setup]
- $description[When a user join, i'll give him the role <@&$mentionedRoles[<]>, and i'll send a message on <#$mentionedChannels[>;yes]>]
- $setServerVar[wchannel;$mentionedChannels[<;yes]]
- $setServerVar[wrole;$mentionedRoles[>]]
- //Second command//
- //Trigger: $onJoined[$getServerVar[wchannel]]//
- //CODE://
- $nomention
- $suppressErrors
- $giveRole[$authorID;$getServerVar[wrole]]
- $color[$random[100000;999999]]
- $author[Welcome to the server, $username[$authorID]]
- $description[You received the role <@&$getServerVar[wrole]>!]
- // Join here to get more exclusive codes & APIs: https://discord.gg/GfUYzXnA
- //if you have question or it returns any error, feel free to join the support server, https://dsc.chat/codes //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement