Open eartharoid opened 1 year ago
This new settings format is not backwards compatible so it would either need to also support the existing format ['123'. '456']
, or update or reset the property when the bot is updated.
pingRoles.roles
is an array, pingRoles.mode
is ignored and is always all
- equivalent to the current behaviour. Or just use the {if: then}
format with the everyone role?pingRoles.roles
is not an array (so is an object), dynamic:ly select roles:
pingRoles.mode
is all
, ping every value where the member has keypingRoles.mode
is highest
, find the highest key that the member has and ping its valueExamples:
// always
// -> @123, @456
{
mode: 'all',
roles: ['123', '456']
}
// if the member has both 123 and 234,
// -> @456, @567
{
mode: 'all',
roles: {
'123': '456',
'234': '567',
}
}
// if the member has both 123 and 234, assuming 123 is higher in the role hierarchy,
// -> @456
{
mode: 'highest',
roles: {
'123': '456',
'234': '567',
}
}
Discussed at dsctickets#2994
<div type 'discussions-op-text'>
Originally posted by King Tiger at 20.04.2021 add ping, like a member have "x" role, ping "x" instead of here suppose if a Member have Spanish role, i want it to Ping Spanish instead of here basically putting a condition to fetch role then ping