mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
9 lines
303 B
TypeScript
9 lines
303 B
TypeScript
export async function fillActiveAlertsList(pluginData) {
|
|
const allAlerts = await pluginData.state.alerts.getAllGuildAlerts();
|
|
|
|
allAlerts.forEach(alert => {
|
|
if (!pluginData.state.usersWithAlerts.includes(alert.user_id)) {
|
|
pluginData.state.usersWithAlerts.push(alert.user_id);
|
|
}
|
|
});
|
|
}
|