Description

Shows users with the specific role

Trigger

/ cmd

BDScript Code

$nomention

$c[ For more information about API KEY, Visit -> https://dadocs.rickyjs.xyz/ ]
$c[ Make sure you have `ApiKey`, `BotToken`, variable.]

$httpAddHeader[apikey;$getVar[ApiKey]]
$httpAddHeader[bot-token;$getVar[BotToken]]
$httpAddHeader[guild-id;$guildID] 
$httpAddHeader[role-id;$message[role-id]]
$httpGet[https://bdfddata.rickyjs.xyz/beta/guild/rolememberlist?simple=true]

$jsonParse[$httpResult[details]]

$var[n;0]

$c[Rember that the **MAX** it can show is 40 members, do-to cv2 thing idk 🤷]
   
   $addContainer[c.]
    $eval[$repeatMessage[10;$repeatMessage[4;%{DOL}%var[n\;%{DOL}%sum[1\;%{DOL}%var[n\]\]\] %{DOL}%if[%{DOL}%json[membersCount\]<%{DOL}%var[n\]\] %{DOL}%else %{DOL}%addTextDisplay[%{DOL}%var[n\]. User: %{DOL}%json[members\;%{DOL}%sub[%{DOL}%var[n\]\;1\]\;username\] (%{DOL}%json[members\;%{DOL}%sub[%{DOL}%var[n\]\;1\]\;id\])\;c.\] %{DOL}%endif
  ]]]
← Back to store
Copied to clipboard!
Link copied to clipboard — share with others!