Advertisement
Aouchan

/banned-users

Apr 11th, 2024 (edited)
1,541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | Source Code | 0 0
  1. $nomention
  2. $reply
  3. $botTyping
  4. $allowUserMentions[]
  5.  
  6. $c[⁠▽ You'll need an API Key in order to use this code ▽]
  7.  
  8. $c[▽ Visit -> https://dadocs.rickyjs.xyz/ for more information ▽]
  9.  
  10. $if[$guildID==]
  11. You can't use this in DMs.
  12. $stop
  13. $endif
  14.  
  15. $if[$or[$isAdmin[$authorID]==true;$checkUserPerms[$authorID;ban]==true]==false]
  16. You don't have enough permissions to use this!
  17. $stop
  18. $endif
  19.  
  20. $if[$or[$isAdmin[$botID]==true;$checkUserPerms[$botID;ban]==true]==false]
  21. $username[$botID] needs `BAN` Permission to view banned users!
  22. $stop
  23. $endif
  24.  
  25. $var[first.page.arrow;<:Pixelated_FirstArrow:1193452503589716078>]
  26. $var[last.page.arrow;<:Pixelated_LastArrow:1193452401831710720>]
  27. $var[next.page.arrow;<:Pixelated_NextArrow:1193452428230672435>]
  28. $var[prev.page.arrow;<:Pixelated_PrevArrow:1193452525832126464>]
  29. $var[red.cross;<:VN_RedCross:1068802990657519686>]
  30. $var[color;fffafa]
  31.  
  32. $httpAddHeader[apikey;$getVar[ApiKey]]
  33. $httpAddHeader[bot-token;$getVar[BotToken]]
  34. $httpAddHeader[guild-id;$guildID]
  35. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/bans]
  36. $jsonParse[$httpResult]
  37.  
  38. $var[details.length;$jsonArrayCount[details]]
  39.  
  40. $if[$var[details.length]==0]
  41. $authorIcon[$serverIcon[$guildID]]
  42. $author[$serverName[$guildID]]
  43. $description[There are no banned users!]
  44. $color[$var[color]]
  45. $else
  46. $var[q;0]
  47. $var[sep;$url[decode;%0A]] $c[ // Separator ]
  48. $var[users;$eval[$repeatMessage[10;%{DOL}%if[%{DOL}%json[details\;%{DOL}%var[q\]\]!=\]%{DOL}%sum[%{DOL}%var[q\]\;1\]. %{DOL}%var[get.user\;%{DOL}%json[details\;%{DOL}%var[q\]\;user\;id\]\]<@%{DOL}%var[get.user\]> ***(@%{DOL}%username[%{DOL}%var[get.user\]\])***%{DOL}%var[reason\;%{DOL}%replaceText[%{DOL}%replaceText[%{DOL}%json[details\;%{DOL}%var[q\]\;reason\]\;`\;\]\;%{DOL}%var[sep\]\; \]\] - %{DOL}%trimSpace[%{DOL}%if[%{DOL}%var[reason\]==\]`No reason given.`%{DOL}%else `%{DOL}%var[reason\]`%{DOL}%endif\]%{DOL}%var[sep\]%{DOL}%else %{DOL}%stop%{DOL}%endif%{DOL}%var[q\;%{DOL}%calculate[%{DOL}%var[q\] + 1\]\]]]]
  49.  
  50. $enableDecimals[true]
  51. $var[div;$divide[$var[details.length];10]]
  52.  
  53. $if[$checkContains[$var[div];.]==true]
  54. $textSplit[$var[div];.]
  55. $var[total.pages;$sum[$splitText[1];1]]
  56. $else
  57. $var[total.pages;$var[div]]
  58. $endif
  59.  
  60. $authorIcon[$serverIcon[$guildID]]
  61. $author[$serverName[$guildID]]
  62. $title[Banned Users ($var[details.length])]
  63. $description[$var[users]]
  64. $color[$var[color]]
  65. $footer[Page 1/$var[total.pages]] $c[ // <- Do not edit the footer ]
  66.  
  67. $addButton[false;GuildUsersBanList-$authorID-FirstPage;;primary;true;$var[first.page.arrow]]
  68. $addButton[false;GuildUsersBanList-$authorID-PrevPage;;primary;true;$var[prev.page.arrow]]
  69. $addButton[false;GuildUsersBanList-$authorID-NextPage;;primary;$checkCondition[$var[total.pages]==1];$var[next.page.arrow]]
  70. $addButton[false;GuildUsersBanList-$authorID-LastPage;;primary;$checkCondition[$var[total.pages]==1];$var[last.page.arrow]]
  71. $addButton[false;DeleteEmbedMsg-$authorID;;danger;false;$var[red.cross]]
  72. $addButton[true;ServerBannedUser-$authorID;Search a User;secondary;false;👤]
  73. $addButton[false;ServerBanListPage-$authorID;A Specific Page;secondary;false;📝]
  74. $endif
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement