reminder-bot/web/static/js/reminder_errors.js

20 lines
397 B
JavaScript
Raw Normal View History

let _reminderErrors = [];
const reminderErrors = () => {
return _reminderErrors;
}
const guildId = () => {
2023-08-19 20:21:56 +00:00
let selected = document.querySelector(".guildList a.is-active");
return selected.dataset["guild"];
}
function loadErrors() {
fetch(`/dashboard/api/guild/${guildId()}/errors`).then(response => response.json())
}
document.addEventListener('DOMContentLoaded', () => {
})