style(bot): capitalize attendance embed field labels
Title-case 'Operation Type' and 'Max Players' in the RSVP embed and apply prettier formatting to the listener error log call.
This commit is contained in:
parent
9b909e85e6
commit
7cfb650095
1 changed files with 5 additions and 3 deletions
|
|
@ -143,9 +143,9 @@ export const renderAttendanceEmbed = (
|
|||
.setTitle(missionTitle(mission))
|
||||
.setDescription(
|
||||
[
|
||||
`**Operation type:** ${operationTypeLabel(mission.operationType)}`,
|
||||
`**Operation Type:** ${operationTypeLabel(mission.operationType)}`,
|
||||
`**Starts:** <t:${startUnix}:F> (<t:${startUnix}:R>)`,
|
||||
`**Max players:** ${mission.missionRoles.maxPlayers}`,
|
||||
`**Max Players:** ${mission.missionRoles.maxPlayers}`,
|
||||
].join("\n"),
|
||||
)
|
||||
.setColor(EMBED_COLOR)
|
||||
|
|
@ -385,7 +385,9 @@ export const reconcile = async (client: Client, payload: Payload): Promise<void>
|
|||
export const start = (client: Client, payload: Payload): void => {
|
||||
payload.logger.info("[Bot] Attendance embed service started");
|
||||
void startAttendanceListener(client, payload).catch((error) => {
|
||||
payload.logger.error(`[Bot] Attendance realtime listener failed to start: ${errorMessage(error)}`);
|
||||
payload.logger.error(
|
||||
`[Bot] Attendance realtime listener failed to start: ${errorMessage(error)}`,
|
||||
);
|
||||
});
|
||||
void reconcile(client, payload);
|
||||
setInterval(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue