Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $onlyIf[$checkContains[$customID;accept;decline;userinfo]==true;]
- $if[$checkUserPerms[$authorID;manageserver]==true]
- $textSplit[$customID;β’]
- $var[app;$splitText[2]]
- $if[$splitText[1]==accept]
- $title[$getEmbedData[$channelID;$messageID;1;title]]
- $description[$getEmbedData[$channelID;$messageID;1;description]]
- $thumbnail[$userAvatar[$splitText[3]];2]
- $title[$getEmbedData[$channelID;$messageID;2;title];2]
- $description[$replaceText[$getEmbedData[$channelID;$messageID;2;description];π Pending;π’ Accepted]
- Accepted By: <@$authorID>;2]
- $color[00ff00]
- $color[00ff00;2]
- $removeButtons
- $addButton[no;ac;Application Accepted;success;yes;;]
- $sendEmbedMessage[$dmChannelID[$splitText[3]];;**Your Application Was Accepted!**;;Congratulations! we decided to select you.;ff8888;;;$serverName[$guildID] β’ $username;;;;no;]
- $try
- $roleGrant[$splitText[3];+$getServerVar[app$var[app]role]]
- $endtry
- $setServerVar[app$var[app]16;$replaceText[$getServerVar[app$var[app]16];$splitText[3]β’;]]
- $endif
- $if[$splitText[1]==decline]
- $title[$getEmbedData[$channelID;$messageID;1;title]]
- $description[$getEmbedData[$channelID;$messageID;1;description]]
- $title[$getEmbedData[$channelID;$messageID;2;title];2]
- $thumbnail[$userAvatar[$splitText[3]];2]
- $description[$replaceText[$getEmbedData[$channelID;$messageID;2;description];π Pending;π΄ Declined]
- Declined By: <@$authorID>;2]
- $color[ff0000]
- $color[ff0000;2]
- $removeButtons
- $addButton[no;ac;Application Declined;danger;yes;;]
- $sendEmbedMessage[$dmChannelID[$splitText[3]];;**Your Application Was Rejected!**;;Sorry! we decided to not to select you.;ff8888;;;$serverName[$guildID] β’ $username;;;;no;]
- $try
- $roleGrant[$splitText[3];+$getServerVar[app$var[app]derole]]
- $endtry
- $setServerVar[app$var[app]16;$replaceText[$getServerVar[app$var[app]16];$splitText[3]β’;]]
- $endif
- $else
- $ephemeral
- $removeButtons
- β Only members with **Manage Server** permission can click this button!
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement