typo and return

This commit is contained in:
almeidx 2021-07-29 00:50:41 +01:00
parent 74a676913e
commit bd5e5100a5
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
2 changed files with 6 additions and 10 deletions

View file

@ -55,7 +55,7 @@ export const ButtonInteractionEvt = reactionRolesEvt({
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A configuration error occured** on buttons for message ${int.message.id}, group **${context.groupName}** not found in config`,
`**A configuration error occurred** on buttons for message ${int.message.id}, group **${context.groupName}** not found in config`,
);
return;
}
@ -67,7 +67,7 @@ export const ButtonInteractionEvt = reactionRolesEvt({
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A internal error occured** on buttons for message ${int.message.id}, action **${context.action}** is not known`,
`**A internal error occurred** on buttons for message ${int.message.id}, action **${context.action}** is not known`,
);
return;
}

View file

@ -22,7 +22,7 @@ export async function handleOpenMenu(
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A configuration error occured** on buttons for message ${int.message.id}, no menus found in config`,
`**A configuration error occurred** on buttons for message ${int.message.id}, no menus found in config`,
);
return;
}
@ -52,14 +52,13 @@ export async function handleOpenMenu(
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A configuration error occured** on buttons for message ${int.message.id}, menu **${context.roleOrMenu}** not found in config`,
`**A configuration error occurred** on buttons for message ${int.message.id}, menu **${context.roleOrMenu}** not found in config`,
);
return;
}
const rows = splitButtonsIntoRows(menuButtons, Object.values(group.button_menus[context.roleOrMenu])); // new MessageActionRow().addComponents(menuButtons);
int.reply({ content: `Click to add/remove a role`, components: rows, ephemeral: true });
return;
}
export async function handleModifyRole(
@ -78,7 +77,7 @@ export async function handleModifyRole(
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A configuration error occured** on buttons for message ${int.message.id}, role **${context.roleOrMenu}** not found on server`,
`**A configuration error occurred** on buttons for message ${int.message.id}, role **${context.roleOrMenu}** not found on server`,
);
return;
}
@ -101,10 +100,7 @@ export async function handleModifyRole(
.getPlugin(LogsPlugin)
.log(
LogType.BOT_ALERT,
`**A configuration error occured** on buttons for message ${int.message.id}, error: ${e}. We might be missing permissions!`,
`**A configuration error occurred** on buttons for message ${int.message.id}, error: ${e}. We might be missing permissions!`,
);
return;
}
return;
}