Retrieve Role Member Count (Effect) — DiSky
Addon: DiSky · Category: Effect · Since: 4.28.0
Syntax
retrieve role member count[s] (of|from) guild %guild% and store (it|them|the counts) in %-objects%Description
Retrieve the member count for each role in a guild and store it in a list variable. The variable will be filled with entries where the key is the role ID and the value is the member count for that role.
Examples
retrieve role member counts of guild (event-guild) and store them in {_counts::*}
loop {_counts::*}:
send "%loop-index%: %loop-value%" to console
# Will send something like:
# 728740599108468756: 1
# 1022582162186326026: 0
# 1022582162731585556: 0
# 1022592015080370216: 1
# 1212795395487305831: 1
# 1495775870558797896: 1