Advertisement
Aouchan

/role-members's Interaction Code

Aug 23rd, 2024 (edited)
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.21 KB | Source Code | 0 0
  1. $nomention
  2. $botListHide
  3.  
  4. $c[ Visit -> https://dadocs.rickyjs.xyz/ for more information about API key ]
  5.  
  6. $var[guild-members-endpoint.version;release]
  7.  
  8. $var[tick.emoji;✅]
  9. $var[cross.emoji;❌]
  10. $var[loading.emoji;💫]
  11. $var[page.emoji;📝]
  12.  
  13. $var[api-key;$getVar[ApiKey]]
  14. $var[bot-token;$getVar[BotToken]]
  15.  
  16. $var[first-page.arrow;<:Pixelated_FirstArrow:1193452503589716078>]
  17. $var[last-page.arrow;<:Pixelated_LastArrow:1193452401831710720>]
  18. $var[next-page.arrow;<:Pixelated_NextArrow:1193452428230672435>]
  19. $var[prev-page.arrow;<:Pixelated_PrevArrow:1193452525832126464>]
  20. $var[left-green.arrow;<:LeftGreenArrowPixel:1190492988053401611>]
  21.  
  22. $var[default.color;afeeed]
  23. $var[arrow.buttons.style;secondary]
  24. $var[page.button.style;primary]
  25.  
  26. $var[\n;$url[decode;%0A]]
  27. $var[\n.space;$url[decode;%0A+]]
  28.  
  29. $textSplit[$customID;-]
  30.  
  31. $if[$splitText[1]==roleMembers]
  32. $if[$splitText[2]==$authorID]
  33. $var[role.id;$splitText[3]]
  34.  
  35. $if[$roleExists[$var[role.id]]==false]
  36. $ephemeral
  37. $removeAllComponents
  38. $var[cross.emoji] This role has been deleted!
  39. $else
  40. $var[chan-id;$channelID]
  41. $var[msg-id;$messageID]
  42. $var[guild-id;$guildID]
  43. $var[author-id;$authorID]
  44.  
  45. $if[$splitText[4]==FirstPage]
  46. $var[page.type;First Page]
  47. $elseif[$splitText[4]==PrevPage]
  48. $var[page.type;Previous Page]
  49. $elseif[$splitText[4]==NextPage]
  50. $var[page.type;Next Page]
  51. $else
  52. $var[page.type;Last Page]
  53. $endif
  54.  
  55. $var[footer.data.2;$getEmbedData[$var[chan-id];$var[msg-id];2;footer]]
  56. $editMessage[$var[chan-id];$var[msg-id];;;Loading $var[page.type]...$var[loading.emoji];$getEmbedData[$var[chan-id];$var[msg-id];1;color];$var[footer.data.2]]
  57.  
  58. $async[disable_components]
  59. $removeAllComponents[$var[msg-id]]
  60. $addButton[no;rm-firstpage;;$var[arrow.buttons.style];true;$var[first-page.arrow];$var[msg-id]]
  61. $addButton[no;rm-prevpage;;$var[arrow.buttons.style];true;$var[prev-page.arrow];$var[msg-id]]
  62. $addButton[no;rm-nextpage;;$var[arrow.buttons.style];true;$var[next-page.arrow];$var[msg-id]]
  63. $addButton[no;rm-lastpage;;$var[arrow.buttons.style];true;$var[last-page.arrow];$var[msg-id]]
  64. $addButton[no;rm-custompage;;$var[page.button.style];true;$var[page.emoji];$var[msg-id]]
  65.  
  66. $textSplit[$replaceText[$var[footer.data.2];Page;];/]
  67. $var[current.page.menu;$splitText[1]]
  68.  
  69. $newSelectMenu[roleMemslist.menu;1;1;Loading Members...;$var[msg-id]]
  70. $addSelectMenuOption[roleMemslist.menu;Role Members 🌸 (Page $var[current.page.menu]);owo-OWO;;true;;$var[msg-id]]
  71. $endasync $await[disable_components]
  72.  
  73. $defer
  74. $httpAddHeader[apikey;$var[api-key]]
  75. $httpAddHeader[bot-token;$var[bot-token]]
  76. $httpAddHeader[guild-id;$var[guild-id]]
  77. $httpAddHeader[exclude;nick,user<username,global_name>]
  78. $httpGet[https://bdfddata.rickyjs.xyz/$var[guild-members-endpoint.version]/guild/members]
  79.  
  80. $async[fetch_role_icon]
  81. $httpAddHeader[role;$var[role.id]]
  82. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/roles]
  83. $jsonParse[$httpResult]
  84.  
  85. $var[role.icon;$json[details;icon]]
  86. $var[isBoosterRole;$jsonExists[details;tags;premium_subscriber]]
  87. $endasync $await[fetch_role_icon]
  88.  
  89. $async[roleMembersCount]
  90. $textSplit[$httpResult;$var[role.id]]
  91.  
  92. $var[role.members.count;$sub[$getTextSplitLength;1]]
  93. $var[json.body;$joinSplitText[$var[role.id]]]
  94. $endasync $await[roleMembersCount]
  95.  
  96. $var[role.color;$getRoleColor[$var[role.id]]]
  97.  
  98. $if[$var[role.members.count]==0]
  99. $ephemeral
  100. $removeAllComponents
  101. $description[No members found in <@&$var[role.id]> role]
  102. $color[$var[role.color]]
  103. $else
  104. $async[page_math]
  105. $if[$checkContains[$getEmbedData[$var[chan-id];$var[msg-id];1;footer];Role]==true]
  106. $var[footer.data.pg;$getEmbedData[$var[chan-id];$var[msg-id];2;footer]]
  107. $else
  108. $var[footer.data.pg;$getEmbedData[$var[chan-id];$var[msg-id];1;footer]]
  109. $endif
  110.  
  111. $textSplit[$replaceText[$var[footer.data.pg];Page;];/]
  112. $var[current.page;$splitText[1]]
  113.  
  114. $enableDecimals[true]
  115. $var[div;$divide[$var[role.members.count];10]]
  116.  
  117. $if[$checkContains[$var[div];.]==true]
  118. $textSplit[$var[div];.]
  119. $var[total.pages;$sum[$splitText[1];1]]
  120. $else
  121. $var[total.pages;$var[div]]
  122. $endif
  123. $endasync $await[page_math]
  124.  
  125. $if[$splitText[4]==FirstPage]
  126. $var[updated.page;1]
  127. $elseif[$splitText[4]==PrevPage]
  128. $var[updated.page;$sub[$var[current.page];1]]
  129. $elseif[$splitText[4]==NextPage]
  130. $var[updated.page;$sum[$var[current.page];1]]
  131. $else
  132. $var[updated.page;$var[total.pages]]
  133. $endif
  134.  
  135. $if[$or[$var[updated.page]>$var[total.pages];$var[updated.page]<=0]==true]
  136. $var[updated.page;$var[total.pages]]
  137. $endif
  138.  
  139. $var[final.element;$multi[$var[updated.page];10]]
  140. $var[x;$sum[$sub[$var[final.element];9];1]]
  141. $var[x.uwu;$sub[$var[x];1]]
  142. $var[q;0]
  143.  
  144. $async[loops]
  145. $textSplit[$var[json.body];$var[role.id]]
  146.  
  147. $if[$var[isBoosterRole]==true]
  148. $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\]\]]
  149. $else
  150. $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\]\]]
  151. $endif
  152.  
  153. $eval[$repeatMessage[10;$var[code]]]
  154.  
  155. $if[$var[isBoosterRole]==true]
  156. $var[show.members;$eval[$var[x.uwu]. <@$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\]- -# Boosting: <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]]
  157. $else
  158. $var[show.members;$eval[$var[x.uwu]. <@$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\]\]\])`]]
  159. $endif
  160.  
  161. $var[role-members-json;"$jsonJoinArray[role-members;", "]"]
  162. $endasync $await[loops]
  163.  
  164. $description[## Role Members of <@&$var[role.id]>$var[\n]-# There are $var[role.members.count] members;1]
  165. $thumbnail[$var[role.icon];1]
  166. $footer[Role ID: $var[role.id];1]
  167. $description[$var[show.members];2]
  168. $footer[Page $var[updated.page]/$var[total.pages];2]
  169.  
  170. $color[$var[role.color];1]
  171. $color[$var[role.color];2]
  172.  
  173. $removeAllComponents
  174. $addButton[no;roleMembers-$var[author-id]-$var[role.id]-FirstPage;;$var[arrow.buttons.style];$checkCondition[$var[updated.page]==1];$var[first-page.arrow]]
  175. $addButton[no;roleMembers-$var[author-id]-$var[role.id]-PrevPage;;$var[arrow.buttons.style];$checkCondition[$var[updated.page]==1];$var[prev-page.arrow]]
  176. $addButton[no;roleMembers-$var[author-id]-$var[role.id]-NextPage;;$var[arrow.buttons.style];$checkCondition[$var[updated.page]==$var[total.pages]];$var[next-page.arrow]]
  177. $addButton[no;roleMembers-$var[author-id]-$var[role.id]-LastPage;;$var[arrow.buttons.style];$checkCondition[$var[updated.page]==$var[total.pages]];$var[last-page.arrow]]
  178. $addButton[no;roleMembers.pageModal-$var[author-id]-$var[role.id];;$var[page.button.style];$checkCondition[$var[total.pages]==1];$var[page.emoji]]
  179.  
  180. $jsonParse[{ "role-members": [ $var[role-members-json] \] }]
  181. $var[i;0]
  182. $var[code;%{DOL}%addSelectMenuOption[RoleMembersList.Menu\;%{DOL}%var[x.uwu\]. %{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\]\]%{DOL}%var[x.uwu\;%{DOL}%calculate[%{DOL}%var[x.uwu\] + 1\]\]]
  183.  
  184. $newSelectMenu[RoleMembersList.Menu;1;1;Role Members 🌸 (Page $var[updated.page])]
  185. $eval[$repeatMessage[$jsonArrayCount[role-members];$var[code]]]
  186.  
  187. $endif $c[ // <- Role Members Count 0 Check End ]
  188. $endif $c[ // <- Role Exists Check End ]
  189. $else
  190. $ephemeral
  191. $removeAllComponents
  192. This is not your button!
  193. $endif
  194. $endif
  195.  
  196. $if[$splitText[1]==roleMembers.pageModal]
  197. $if[$splitText[2]==$authorID]
  198. $newModal[roleMembers.pageInput-$splitText[3];Role Members List]
  199. $addTextInput[userPageInput;short;Page Number;1;10;true;;7]
  200. $else
  201. $ephemeral
  202. $removeAllComponents
  203. This is not your button!
  204. $endif
  205. $endif
  206.  
  207. $if[$splitText[1]==roleMembers.pageInput]
  208. $ephemeral
  209. $removeAllComponents
  210. $var[role.id;$splitText[2]]
  211.  
  212. $if[$roleExists[$var[role.id]]==false]
  213. $var[cross.emoji] This Role has been deleted
  214. $else
  215. $var[page-input;$input[userPageInput]]
  216. $var[chan-id;$channelID]
  217. $var[msg-id;$messageID]
  218. $var[guild-id;$guildID]
  219. $var[author-id;$authorID]
  220.  
  221. $var[footer.data.2;$getEmbedData[$var[chan-id];$var[msg-id];2;footer]]
  222.  
  223. $async[disable_buttons]
  224. $editButton[roleMembers-$var[author-id]-$var[role.id]-FirstPage;;$var[arrow.buttons.style];true;$var[first-page.arrow];$var[msg-id]]
  225. $editButton[roleMembers-$var[author-id]-$var[role.id]-PrevPage;;$var[arrow.buttons.style];true;$var[prev-page.arrow];$var[msg-id]]
  226. $editButton[roleMembers-$var[author-id]-$var[role.id]-NextPage;;$var[arrow.buttons.style];true;$var[next-page.arrow];$var[msg-id]]
  227. $editButton[roleMembers-$var[author-id]-$var[role.id]-LastPage;;$var[arrow.buttons.style];true;$var[last-page.arrow];$var[msg-id]]
  228. $editButton[roleMembers.pageModal-$var[author-id]-$var[role.id];Loading Page...;$var[page.button.style];true;$var[loading.emoji];$var[msg-id]]
  229. $endasync $await[disable_buttons]
  230.  
  231. $defer
  232. $httpAddHeader[apikey;$var[api-key]]
  233. $httpAddHeader[bot-token;$var[bot-token]]
  234. $httpAddHeader[guild-id;$var[guild-id]]
  235. $httpAddHeader[exclude;nick,user<username,global_name>]
  236. $httpGet[https://bdfddata.rickyjs.xyz/$var[guild-members-endpoint.version]/guild/members]
  237.  
  238. $textSplit[$httpResult;$var[role.id]]
  239. $var[role.members.count;$sub[$getTextSplitLength;1]]
  240. $var[role.color;$getRoleColor[$var[role.id]]]
  241.  
  242. $async[fetch_role_icon]
  243. $httpAddHeader[role;$var[role.id]]
  244. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/roles]
  245. $jsonParse[$httpResult]
  246.  
  247. $var[isBoosterRole;$jsonExists[details;tags;premium_subscriber]]
  248. $endasync $await[fetch_role_icon]
  249.  
  250. $async[page_math]
  251. $textSplit[$replaceText[$var[footer.data.2];Page;];/]
  252. $var[current.page;$splitText[1]]
  253.  
  254. $enableDecimals[true]
  255. $var[div;$divide[$var[role.members.count];10]]
  256.  
  257. $if[$checkContains[$var[div];.]==true]
  258. $textSplit[$var[div];.]
  259. $var[total.pages;$sum[$splitText[1];1]]
  260. $else
  261. $var[total.pages;$var[div]]
  262. $endif
  263. $endasync $await[page_math]
  264.  
  265. $if[$isNumber[$var[page-input]]==false]
  266. $var[updated.page;1]
  267. $else
  268. $var[updated.page;$round[$var[page-input]]]
  269. $endif
  270.  
  271. $if[$or[$var[updated.page]>$var[total.pages];$var[updated.page]<=0]==true]
  272. $var[updated.page;$var[total.pages]]
  273. $endif
  274.  
  275. $var[final.element;$multi[$var[updated.page];10]]
  276. $var[x;$sum[$sub[$var[final.element];9];1]]
  277. $var[x.uwu;$sub[$var[x];1]]
  278. $var[q;0]
  279.  
  280. $if[$var[isBoosterRole]==true]
  281. $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\]\]]
  282. $else
  283. $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\]\]]
  284. $endif
  285.  
  286. $eval[$repeatMessage[10;$var[code]]]
  287.  
  288. $if[$var[isBoosterRole]==true]
  289. $var[show.members;$eval[$var[x.uwu]. <@$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\]- -# **Boosting:** <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]]
  290. $else
  291. $var[show.members;$eval[$var[x.uwu]. <@$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\]\]\])`]]
  292. $endif
  293.  
  294. $description[$var[show.members]]
  295. $footer[Page $var[updated.page]]
  296. $color[$var[role.color]]
  297.  
  298. $async[enable_buttons]
  299. $editButton[roleMembers-$var[author-id]-$var[role.id]-FirstPage;;$var[arrow.buttons.style];$checkCondition[$var[current.page]==1];$var[first-page.arrow];$var[msg-id]]
  300. $editButton[roleMembers-$var[author-id]-$var[role.id]-PrevPage;;$var[arrow.buttons.style];$checkCondition[$var[current.page]==1];$var[prev-page.arrow];$var[msg-id]]
  301. $editButton[roleMembers-$var[author-id]-$var[role.id]-NextPage;;$var[arrow.buttons.style];$checkCondition[$var[current.page]==$var[total.pages]];$var[next-page.arrow];$var[msg-id]]
  302. $editButton[roleMembers-$var[author-id]-$var[role.id]-LastPage;;$var[arrow.buttons.style];$checkCondition[$var[current.page]==$var[total.pages]];$var[last-page.arrow];$var[msg-id]]
  303. $editButton[roleMembers.pageModal-$var[author-id]-$var[role.id];;$var[page.button.style];$checkCondition[$var[total.pages]==1];$var[page.emoji];$var[msg-id]]
  304. $endasync $await[enable_buttons]
  305.  
  306. $var[i;0]
  307. $var[code;%{DOL}%addSelectMenuOption[RoleMembersList.Menu\;%{DOL}%var[x.uwu\]. %{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\]\]%{DOL}%var[x.uwu\;%{DOL}%calculate[%{DOL}%var[x.uwu\] + 1\]\]]
  308.  
  309. $newSelectMenu[RoleMembersList.Menu;1;1;Role Members 🌸]
  310. $eval[$repeatMessage[$jsonArrayCount[role-members];$var[code]]]
  311. $endif
  312. $endif
  313.  
  314. $if[$splitText[1]==roleUser.avatars]
  315. $var[user;$splitText[2]]
  316.  
  317. $if[$findUser[$var[user];no]==]
  318. $ephemeral
  319. $removeAllComponents
  320. $var[cross.emoji] This user isn't in this server anymore!
  321. $else
  322. $if[$userBannerColor[$var[user]]==]
  323. $var[color;$var[default.color]]
  324. $else
  325. $var[color;$userBannerColor[$var[user]]]
  326. $endif
  327.  
  328. $var[user.name;$username[$var[user]]]
  329. $var[user.avatar;$userAvatar[$var[user]]]
  330. $var[user.serverAvatar;$userServerAvatar[$var[user]]]
  331.  
  332. $title[$var[user.name]'s Default Avatar]
  333. $image[$var[user.avatar]?size=4096]
  334. $color[$var[color]]
  335.  
  336. $if[$var[user.avatar]!=$var[user.serverAvatar]]
  337. $image[$var[user.serverAvatar]?size=4096;2]
  338. $else
  339. $description[User does not have a server avatar.;2]
  340. $endif
  341.  
  342. $title[$var[user.name]'s Server Avatar;2]
  343. $color[$var[color];2]
  344.  
  345. $editButton[roleUser.avatars-$var[user];Avatars;primary;true]
  346. $editButton[roleUser.banners-$var[user];Banners;primary;false]
  347. $editButton[roleUser.mainpage-$var[user];Back to Main Page;success;false;$var[left-green.arrow]]
  348. $endif
  349. $endif
  350.  
  351. $if[$splitText[1]==roleUser.banners]
  352. $var[user;$splitText[2]]
  353. $var[guild-id;$guildID]
  354.  
  355. $if[$userBannerColor[$var[user]]==]
  356. $var[color;$var[default.color]]
  357. $else
  358. $var[color;$userBannerColor[$var[user]]]
  359. $endif
  360.  
  361. $httpAddHeader[apikey;$var[api-key]]
  362. $httpAddHeader[bot-token;$var[bot-token]]
  363. $httpAddHeader[guild-id;$var[guild-id]]
  364. $httpAddHeader[member;$var[user]]
  365. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/members]
  366.  
  367. $var[user.name;$username[$var[user]]]
  368.  
  369. $if[$userBanner[$var[user]]!=]
  370. $image[$userBanner[$var[user]]?size=4096]
  371. $else
  372. $description[User does not have a banner.]
  373. $endif
  374.  
  375. $if[$httpResult[details;banner]!=]
  376. $var[hash;$httpResult[details;banner]]
  377. $var[user-server-banner.url;https://cdn.discordapp.com/guilds/$var[guild-id]/users/$var[user]/banners/$var[hash].$replaceText[$replaceText[$checkContains[$var[hash];a_];true;gif];false;png]]
  378.  
  379. $image[$var[user-server-banner.url]?size=4096;2]
  380. $else
  381. $description[User does not have a server banner.;2]
  382. $endif
  383.  
  384. $title[$var[user.name]'s Default Banner]
  385. $title[$var[user.name]'s Server Banner;2]
  386.  
  387. $color[$var[color]]
  388. $color[$var[color];2]
  389.  
  390. $editButton[roleUser.avatars-$var[user];Avatars;primary;false]
  391. $editButton[roleUser.banners-$var[user];Banners;primary;true]
  392. $editButton[roleUser.mainpage-$var[user];Back to Main Page;success;false;$var[left-green.arrow]]
  393. $endif
  394.  
  395. $if[$splitText[1]==roleUser.mainpage]
  396. $var[user;$splitText[2]]
  397. $var[guild-id;$guildID]
  398.  
  399. $if[$findUser[$var[user];no]==]
  400. $ephemeral
  401. $removeAllComponents
  402. $var[cross.emoji] This user isn't in this server anymore!
  403. $else
  404. $if[$userBannerColor[$var[user]]==]
  405. $var[color;$var[default.color]]
  406. $else
  407. $var[color;$userBannerColor[$var[user]]]
  408. $endif
  409.  
  410. $httpAddHeader[apikey;$var[api-key]]
  411. $httpAddHeader[bot-token;$var[bot-token]]
  412. $httpAddHeader[guild-id;$var[guild-id]]
  413. $httpAddHeader[member;$var[user]]
  414. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/members]
  415.  
  416. $var[user.type;$replaceText[$replaceText[$isBot[$var[user]];true;bot];false;human]]
  417. $var[user.creation;$calculate[($var[user] / 4194304 + 1420070400000) / 1000 ]]
  418. $var[user.joined;$httpResult[details;joined_at]]
  419. $var[user.dms;$isUserDMEnabled[$var[user]]]
  420. $var[user.avatar;$userAvatar[$var[user]]]
  421. $var[user.name;$username[$var[user]]]
  422.  
  423. $author[$toTitleCase[$var[user.type]]]
  424. $title[$var[user.name]]
  425. $embeddedURL[https://discord.com/users/$var[user]]
  426. $description[- **__User__ ⤵**$var[\n.space]- ╭ `Mention:` <@$var[user]>$var[\n.space]- ╰ `Creation:` <t:$var[user.creation]> (<t:$var[user.creation]:R>)$var[\n]- **__Member__ ⤵**$var[\n.space]- ╭ `DMs:` $replaceText[$replaceText[$var[user.dms];true;$var[tick.emoji] Enabled];false;$var[cross.emoji] Disabled]$var[\n.space]- ╰ `Joined:` <t:$var[user.joined]> (<t:$var[user.joined]:R>)]
  427. $thumbnail[$var[user.avatar]]
  428. $footer[User ID: $var[user]]
  429. $color[$var[color]]
  430.  
  431. $editButton[roleUser.avatars-$var[user];Avatars;primary;false]
  432. $editButton[roleUser.banners-$var[user];Banners;primary;false]
  433. $editButton[roleUser.mainpage-$var[user];Back to Main Page;success;true;$var[left-green.arrow]]
  434. $endif
  435. $endif
  436.  
  437. $textSplit[$message;-]
  438.  
  439. $if[$splitText[1]==roleMemberInfo]
  440. $if[$splitText[2]==$authorID]
  441. $ephemeral
  442. $removeAllComponents
  443.  
  444. $var[user;$splitText[3]]
  445. $var[role;$splitText[4]]
  446.  
  447. $if[$roleExists[$var[role]]==false]
  448. $var[cross.emoji] This role has been deleted!
  449. $else
  450. $if[$findUser[$var[user];no]==]
  451. $var[cross.emoji] This user isn't in this server anymore!
  452. $else
  453. $if[$hasRole[$var[user];$var[role]]==false]
  454. $var[cross.emoji] This user doesn't belong in this role!
  455. $else
  456. $if[$userBannerColor[$var[user]]==]
  457. $var[color;$var[default.color]]
  458. $else
  459. $var[color;$userBannerColor[$var[user]]]
  460. $endif
  461.  
  462. $var[guild-id;$guildID]
  463.  
  464. $httpAddHeader[apikey;$var[api-key]]
  465. $httpAddHeader[bot-token;$var[bot-token]]
  466. $httpAddHeader[guild-id;$var[guild-id]]
  467. $httpAddHeader[member;$var[user]]
  468. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/members]
  469.  
  470. $defer
  471. $var[user.type;$replaceText[$replaceText[$isBot[$var[user]];true;bot];false;human]]
  472. $var[user.creation;$calculate[($var[user] / 4194304 + 1420070400000) / 1000 ]]
  473. $var[user.joined;$httpResult[details;joined_at]]
  474. $var[user.dms;$isUserDMEnabled[$var[user]]]
  475.  
  476. $author[$toTitleCase[$var[user.type]]]
  477. $title[$username[$var[user]]]
  478. $embeddedURL[https://discord.com/users/$var[user]]
  479. $description[- **__User__ ⤵**$var[\n.space]- ╭ `Mention:` <@$var[user]>$var[\n.space]- ╰ `Creation:` <t:$var[user.creation]> (<t:$var[user.creation]:R>)$var[\n]- **__Member__ ⤵**$var[\n.space]- ╭ `DMs:` $replaceText[$replaceText[$var[user.dms];true;$var[tick.emoji] Enabled];false;$var[cross.emoji] Disabled]$var[\n.space]- ╰ `Joined:` <t:$var[user.joined]> (<t:$var[user.joined]:R>)]
  480. $thumbnail[$userAvatar[$var[user]]]
  481. $footer[User ID: $var[user]]
  482. $color[$var[color]]
  483.  
  484. $addButton[no;roleUser.avatars-$var[user];Avatars;primary;false]
  485. $addButton[no;roleUser.banners-$var[user];Banners;primary;false]
  486. $addButton[yes;roleUser.mainpage-$var[user];Back to Main Page;success;true;$var[left-green.arrow]]
  487.  
  488. $endif $c[ // <- User role check end ]
  489. $endif $c[ // <- User in server check end ]
  490. $endif $c[ // <- Role exists check end ]
  491. $else
  492. $ephemeral
  493. $removeAllComponents
  494. This is not your menu!
  495. $endif
  496. $endif
  497.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement