Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $c[
- // ⚠️ For normal triggered commands just make the trigger as your prefix
- // ⚠️ If you want to make this a slash simply follow these directions below!
- ➡️ Trigger Settings:
- Slash Trigger: /whois (optional, put this to anything you want!)
- Slash Description: Get information on a user! (optional, put this to anything you want!)
- ➡️ Options: (1/1)
- Option Name: user
- Option Description: Who do you want to get info on?
- Option Type: User
- Once you’re finished with this you’re all done!]
- $if[$or[$checkContains[$toLowercase[$message[1]];whois]==true;$isSlash==true]==true]
- $if[$isSlash==true]
- $defer
- $var[user;$findUser[$message[user];yes]]
- $else
- $var[user;$findUser[$replaceText[$message;$message[1] ;-1];yes]]
- $endif
- $authorIcon[$userAvatar[$var[user]]]
- $author[$username[$var[user]]#$discriminator[$var[user]]]
- $description[<@$var[user]>]
- $try
- $addField[Joined;$userJoined[$var[user];Mon, Jan 2, 2006 3:04 PM];yes]
- $catch
- $endtry
- $try
- $addField[Registered;$userJoinedDiscord[$var[user];Mon, Jan 2, 2006 3:04 PM];yes]
- $catch
- $endtry
- $try
- $if[$userRoles[$var[user]]!=]
- $textSplit[$userRoles[$var[user]];
- ]
- $var[roles;$getTextSplitLength]
- $textSplit[$userRoles[$var[user]];
- ]
- $if[$charCount[$userRoles[$authorID]]!=0]
- $var[n;1]
- $var[a;$eval[$replaceText[$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[10;a]]];$getTextSplitLength;];a;<@&%{DOL}%findRole[%{DOL}%splitText[%{DOL}%var[n%ESCAPED%%ESCAPED%%ESCAPED%> %{DOL}%var[n%{-SEMICOL-}%%{DOL}%sum[%{DOL}%var[n%ESCAPED%%{-SEMICOL-}%1%ESCAPED%%ESCAPED%;-1]]]
- $textSplit[$userRoles[$var[user]];
- ]
- $if[$var[roles]==1]
- $addField[Roles [$var[roles]\];
- <@&$findRole[$splitText[1]]>]
- $else
- $addField[Roles [$var[roles]\];
- $cropText[$var[a];$sub[$charCount[$var[a]];0];]]
- $endif
- $endif
- $endif
- $catch
- $endtry
- $thumbnail[$userAvatar[$var[user]]]
- $footer[ID: $var[user]]
- $addTimestamp
- $var[keyperms;$trimSpace[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$replaceText[$toTitleCase[$replaceText[$toLowercase[$userPerms[$var[user];-1;, ], ];_; ;-1]];Use External Emojis, ;;-1];Use External Stickers, ;;-1];Connect ,;;-1];Request To Speak, ;;-1];Use Vad, ;;-1];Use Application Commands, ;;-1];Create Public Threads, ;;-1];Send Messages In Threads, ;;-1];Manage Emojis And Stickers, ;;-1];Connect, ;;-1];Speak, ;;-1];Move Members, ;;-1];Read Message History, ;;-1];Create Instant Invite, ;;-1];Send Tts Messages, ;;-1];Embed Links, ;;-1];View Guild Insights, ;;-1];Manage Events, ;;-1];Priority Speaker, ;;-1];Stream, ;;-1];Add Reactions, ;;-1];Mute Members, ;;-1];Deafen Members, ;;-1];Manage Threads, ;;-1];View Audit Log, ;;-1];Attach Files, ;;-1];Manage Guild, ;;-1];Create Private Threads, ;;-1];Change Nickname, ;;-1];Manage Webhooks, ;;-1]]]
- $var[keyperms;$trimSpace[$var[keyperms]]]
- $var[keyperms;$cropText[$var[keyperms];$sub[$charCount[$var[keyperms]];1];]]
- $try
- $addField[Key Permissions;$var[keyperms]]
- $catch
- $endtry
- $if[$serverOwner==$var[user]]
- $var[Acknowledgements;Server Owner]
- $elseif[$checkUserPerms[$var[user];manageserver]==true]
- $var[Acknowledgements;Server Admin]
- $elseif[$checkUserPerms[$var[user];admin]==true]
- $var[Acknowledgements;Administrator]
- $elseif[$or[$checkUserPerms[$var[user];kick]==true;$checkUserPerms[$var[user];ban]==true;$checkUserPerms[$var[user];managemessages]==true;$checkUserPerms[$var[user];moderatemembers]==true]==true]
- $var[Acknowledgements;Moderator]
- $elseif[$and[$checkUserPerms[$var[user];admin;ban;kick]==false;$checkUserPerms[$var[user];sendmessages]==true]==true]
- $var[Acknowledgements;Normal Member]
- $elseif[$checkUserPerms[$var[user];sendmessages]==false]
- $var[Acknowledgements;Normal Member]
- $else
- $var[Acknowledgements;Normal Member]
- $endif
- $addField[Acknowledgements;
- $var[Acknowledgements]
- ]
- $textSplit[$userRoles[$var[user]];
- ]
- $try
- $if[$getRoleColor[$highestRole[$var[user]]]!=0]
- $color[$getRoleColor[$highestRole[$var[user]]]]
- $else
- $if[$getRoleColor[$findRole[$splitText[1]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[1]]]]
- $elseif[$getRoleColor[$findRole[$splitText[2]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[2]]]]
- $elseif[$getRoleColor[$findRole[$splitText[3]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[3]]]]
- $elseif[$getRoleColor[$findRole[$splitText[4]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[4]]]]
- $elseif[$getRoleColor[$findRole[$splitText[5]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[5]]]]
- $elseif[$getRoleColor[$findRole[$splitText[6]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[6]]]]
- $elseif[$getRoleColor[$findRole[$splitText[7]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[7]]]]
- $elseif[$getRoleColor[$findRole[$splitText[8]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[8]]]]
- $elseif[$getRoleColor[$findRole[$splitText[9]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[9]]]]
- $elseif[$getRoleColor[$findRole[$splitText[10]]]!=0]
- $color[$getRoleColor[$findRole[$splitText[10]]]]
- $else
- $color[#2f3136]
- $endif
- $endif
- $catch
- $color[#2f3136]
- $endtry
- $endif
Advertisement
Advertisement