Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $onlyIf[$isSlash==true;]
- $c[ Visit -> https://dadocs.rickyjs.xyz/ for more information about API key ]
- $try
- $onlyIf[$guildID!=;]
- $catch
- $ephemeral
- You can't use this command in DMs!
- $stop
- $endtry
- $try
- $onlyIf[$message[role]!=$guildID;]
- $catch
- $ephemeral
- Try another role other than `@everyone`
- $stop
- $endtry
- $defer
- $var[guild-members-endpoint.version;release]
- $var[api-key;$getVar[ApiKey]]
- $var[bot-token;$getVar[BotToken]]
- $var[tick.emoji;✅]
- $var[cross.emoji;❌]
- $var[loading.emoji;💫]
- $var[page.emoji;📝]
- $var[guild-id;$guildID]
- $var[author-id;$authorID]
- $var[first-page.arrow;<:Pixelated_FirstArrow:1193452503589716078>]
- $var[last-page.arrow;<:Pixelated_LastArrow:1193452401831710720>]
- $var[next-page.arrow;<:Pixelated_NextArrow:1193452428230672435>]
- $var[prev-page.arrow;<:Pixelated_PrevArrow:1193452525832126464>]
- $var[arrow.buttons.style;secondary]
- $var[page.button.style;primary]
- $var[\n;$url[decode;%0A]]
- $var[\n.space;$url[decode;%0A+]]
- $httpAddHeader[apikey;$var[api-key]]
- $httpAddHeader[bot-token;$var[bot-token]]
- $httpAddHeader[guild-id;$var[guild-id]]
- $httpAddHeader[exclude;nick,user<username,global_name>]
- $httpGet[https://bdfddata.rickyjs.xyz/$var[guild-members-endpoint.version]/guild/members]
- $var[role.id;$message[role]]
- $var[role.color;$getRoleColor[$var[role.id]]]
- $async[fetch_role_icon]
- $httpAddHeader[role;$var[role.id]]
- $httpGet[https://bdfddata.rickyjs.xyz/release/guild/roles]
- $jsonParse[$httpResult]
- $var[role.icon;$json[details;icon]]
- $var[isBoosterRole;$jsonExists[details;tags;premium_subscriber]]
- $endasync $await[fetch_role_icon]
- $textSplit[$httpResult;$var[role.id]]
- $var[role.members.count;$sub[$getTextSplitLength;1]]
- $if[$var[role.members.count]==0]
- $description[No members found in <@&$var[role.id]> role]
- $color[$var[role.color]]
- $else
- $async[page_math]
- $enableDecimals[true]
- $var[div;$divide[$var[role.members.count];10]]
- $if[$checkContains[$var[div];.]==true]
- $textSplit[$var[div];.]
- $var[total.pages;$sum[$splitText[1];1]]
- $else
- $var[total.pages;$var[div]]
- $endif
- $endasync $await[page_math]
- $var[x;2]
- $var[q;0]
- $if[$var[isBoosterRole]==true]
- $var[code;%{DOL}%async[boost-since-%{DOL}%var[x\]\]%{DOL}%textSplit[%{DOL}%splitText[%{DOL}%sub[%{DOL}%var[x\]\;1\]\]\;"premium_since":"\]%{DOL}%textSplit[%{DOL}%splitText[2\]\;"\]%{DOL}%splitText[1\]%{DOL}%endasync%{DOL}%async[%{DOL}%var[x\]\]%{DOL}%textSplit[%{DOL}%cropText[%{DOL}%splitText[%{DOL}%var[x\]\]\;2000\;\]\;"user":{"id":"\]%{DOL}%textSplit[%{DOL}%cropText[%{DOL}%splitText[2\]\;100\;\]\;"\]%{DOL}%splitText[1\]%{DOL}%endasync%{DOL}%if[%{DOL}%await[%{DOL}%var[x\]\]!=\]%{DOL}%if[%{DOL}%await[boost-since-%{DOL}%var[x\]\]!=\]%{DOL}%jsonSetString[%{DOL}%await[%{DOL}%var[x\]\]-timestamps\;boost\;%{DOL}%await[boost-since-%{DOL}%var[x\]\]\]%{DOL}%endif%{DOL}%jsonArrayAppend[role-members\;%{DOL}%await[%{DOL}%var[x\]\]\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[x\;%{DOL}%calculate[%{DOL}%var[x\]+1\]\]]
- $else
- $var[code;%{DOL}%async[%{DOL}%var[x\]\]%{DOL}%textSplit[%{DOL}%cropText[%{DOL}%splitText[%{DOL}%var[x\]\]\;2000\;\]\;"user":{"id":"\]%{DOL}%textSplit[%{DOL}%cropText[%{DOL}%splitText[2\]\;100\;\]\;"\]%{DOL}%splitText[1\]%{DOL}%endasync%{DOL}%if[%{DOL}%await[%{DOL}%var[x\]\]!=\]%{DOL}%jsonArrayAppend[role-members\;%{DOL}%await[%{DOL}%var[x\]\]\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[x\;%{DOL}%calculate[%{DOL}%var[x\]+1\]\]]
- $endif
- $eval[$repeatMessage[10;$var[code]]]
- $if[$var[isBoosterRole]==true]
- $var[show.members;$eval[1. <@$jsonJoinArray[role-members;> `(@%{DOL}%username[%{DOL}%json[role-members\;%{DOL}%var[q\]\]\])` %{DOL}%if[%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]!=\]%{DOL}%var[\n.space\]- -# **Boosted:** <t:%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]> (<t:%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]:R>)%{DOL}%endif %{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\]+1\]\]%{DOL}%var[\n\]- <@]> `(@%{DOL}%username[%{DOL}%json[role-members\;%{DOL}%var[q\]\]\])` %{DOL}%if[%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]!=\]%{DOL}%var[\n.space\]- -# **Boosted:** <t:%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]> (<t:%{DOL}%json[%{DOL}%json[role-members\;%{DOL}%var[q\]\]-timestamps\;boost\]:R>)%{DOL}%endif]]
- $else
- $var[show.members;$eval[1. <@$jsonJoinArray[role-members;> `(@%{DOL}%username[%{DOL}%json[role-members\;%{DOL}%var[q\]\]\])` %{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\]+1\]\]%{DOL}%var[\n\]- <@]> `(@%{DOL}%username[%{DOL}%json[role-members\;%{DOL}%var[q\]\]\])`]]
- $endif
- $description[## Role Members of <@&$var[role.id]>$var[\n]-# There are $var[role.members.count] members;1]
- $thumbnail[$var[role.icon];1]
- $footer[Role ID: $var[role.id];1]
- $description[$var[show.members];2]
- $footer[Page 1/$var[total.pages];2]
- $color[$var[role.color];1]
- $color[$var[role.color];2]
- $addButton[no;roleMembers-$var[author-id]-$var[role.id]-FirstPage;;$var[arrow.buttons.style];true;$var[first-page.arrow]]
- $addButton[no;roleMembers-$var[author-id]-$var[role.id]-PrevPage;;$var[arrow.buttons.style];true;$var[prev-page.arrow]]
- $addButton[no;roleMembers-$var[author-id]-$var[role.id]-NextPage;;$var[arrow.buttons.style];$checkCondition[$var[total.pages]==1];$var[next-page.arrow]]
- $addButton[no;roleMembers-$var[author-id]-$var[role.id]-LastPage;;$var[arrow.buttons.style];$checkCondition[$var[total.pages]==1];$var[last-page.arrow]]
- $addButton[no;roleMembers.pageModal-$var[author-id]-$var[role.id];;$var[page.button.style];$checkCondition[$var[total.pages]==1];$var[page.emoji]]
- $var[i;0]
- $var[code;%{DOL}%addSelectMenuOption[RoleMembersList.Menu\;%{DOL}%sum[%{DOL}%var[i\]\;1\]. %{DOL}%username[%{DOL}%json[role-members\;%{DOL}%var[i\]\]\]\;roleMemberInfo-%{DOL}%authorID-%{DOL}%json[role-members\;%{DOL}%var[i\]\]-%{DOL}%var[role.id\]\;\;\;\;\]%{DOL}%var[i\;%{DOL}%calculate[%{DOL}%var[i\] + 1\]\]]
- $newSelectMenu[RoleMembersList.Menu;1;1;Role Members 🌸 (Page 1)]
- $eval[$repeatMessage[$jsonArrayCount[role-members];$var[code]]]
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement