[deploy] Remove leftover TS casts in dashboard settings
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 36s
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 36s
This commit is contained in:
@@ -1760,9 +1760,9 @@ router.get('/', (req, res) => {
|
||||
const welcomeChannelInput = document.querySelector('input[name="welcomeChannelId"]');
|
||||
const logChannelInput = document.querySelector('input[name="logChannelId"]');
|
||||
const supportRoleInput = document.querySelector('input[name="supportRoleId"]');
|
||||
if (welcomeChannelInput) (welcomeChannelInput as HTMLInputElement).value = cfg.welcomeChannelId || '';
|
||||
if (logChannelInput) (logChannelInput as HTMLInputElement).value = cfg.logChannelId || '';
|
||||
if (supportRoleInput) (supportRoleInput as HTMLInputElement).value = cfg.supportRoleId || '';
|
||||
if (welcomeChannelInput) welcomeChannelInput.value = cfg.welcomeChannelId || '';
|
||||
if (logChannelInput) logChannelInput.value = cfg.logChannelId || '';
|
||||
if (supportRoleInput) supportRoleInput.value = cfg.supportRoleId || '';
|
||||
automodConfigCache = cfg;
|
||||
modulesCache['ticketsEnabled'] = cfg.ticketsEnabled !== false;
|
||||
modulesCache['automodEnabled'] = cfg.automodEnabled !== false;
|
||||
|
||||
Reference in New Issue
Block a user