Advertisement
Aouchan

/banned-users

Apr 11th, 2024 (edited)
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASM (NASM) 3.06 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. $var[first.page.arrow;<:Pixelated_FirstArrow:1193452503589716078>]
  21. $var[last.page.arrow;<:Pixelated_LastArrow:1193452401831710720>]
  22. $var[next.page.arrow;<:Pixelated_NextArrow:1193452428230672435>]
  23. $var[prev.page.arrow;<:Pixelated_PrevArrow:1193452525832126464>]
  24. $var[red.cross;<:VN_RedCross:1068802990657519686>]
  25. $var[color;fffafa]
  26.  
  27. $httpAddHeader[apikey;$getVar[ApiKey]]
  28. $httpAddHeader[bot-token;$getVar[BotToken]]
  29. $httpAddHeader[guild-id;$guildID]
  30. $httpGet[https://bdfddata.rickyjs.xyz/release/guild/bans]
  31. $jsonParse[$httpResult]
  32.  
  33. $var[details.length;$jsonArrayCount[details]]
  34.  
  35. $if[$var[details.length]==0]
  36.    $authorIcon[$serverIcon[$guildID]]
  37.    $author[$serverName[$guildID]]
  38.    $description[There are no banned users!]
  39.    $color[$var[color]]
  40. $else
  41.    $var[q;0]
  42.    $var[sep;$url[decode;%0A]] $c[ // Separator ]
  43.    $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\]\]]]]
  44.  
  45.    $enableDecimals[true]
  46.    $var[div;$divide[$var[details.length];10]]
  47.  
  48.    $if[$checkContains[$var[div];.]==true]
  49.        $textSplit[$var[div];.]
  50.        $var[total.pages;$sum[$splitText[1];1]]
  51.    $else
  52.        $var[total.pages;$var[div]]
  53.    $endif
  54.    
  55.    $authorIcon[$serverIcon[$guildID]]
  56.    $author[$serverName[$guildID]]
  57.    $title[Banned Users ($var[details.length])]
  58.    $description[$var[users]]
  59.    $color[$var[color]]
  60.    $footer[Page 1/$var[total.pages]] $c[ // <- Do not edit the footer ]
  61.  
  62.    $addButton[false;GuildUsersBanList-$authorID-FirstPage;;primary;true;$var[first.page.arrow]]
  63.    $addButton[false;GuildUsersBanList-$authorID-PrevPage;;primary;true;$var[prev.page.arrow]]
  64.    $addButton[false;GuildUsersBanList-$authorID-NextPage;;primary;$checkCondition[$var[total.pages]==1];$var[next.page.arrow]]
  65.    $addButton[false;GuildUsersBanList-$authorID-LastPage;;primary;$checkCondition[$var[total.pages]==1];$var[last.page.arrow]]
  66.    $addButton[false;DeleteEmbedMsg-$authorID;;danger;false;$var[red.cross]]
  67.    $addButton[true;ServerBannedUser-$authorID;Search a User;secondary;false;👤]
  68.    $addButton[false;ServerBanListPage-$authorID;A Specific Page;secondary;false;📝]
  69. $endif
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement