Description

Roles everyone within the server

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[channel-id;$channelID]

$if[$message[action]==add]
  $var[res;"add": ["$message[role]"\]]
$endif

$if[$message[action]==remove]
  $var[res;"remove": ["$message[role]"\]]
$endif

$httpPost[https://bdfddata.rickyjs.xyz/release/guild/massrole;{$var[res]}]
$httpResult

$if[$isSlash==true]
$ephemeral

$addContainer[c]
$addTextDisplay[$httpResult[details]
Role: <@&$message[role]>;c]
$endif
← Back to store
Copied to clipboard!
Link copied to clipboard — share with others!