mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
typo and return
This commit is contained in:
parent
74a676913e
commit
bd5e5100a5
2 changed files with 6 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue