20 lines
410 B
TypeScript
20 lines
410 B
TypeScript
|
let _reminderErrors = [];
|
||
|
|
||
|
const reminderErrors = () => {
|
||
|
return _reminderErrors;
|
||
|
}
|
||
|
|
||
|
const guildId = () => {
|
||
|
let selected: HTMLElement = 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', () => {
|
||
|
|
||
|
})
|