Skip to content

Commit

Permalink
feat(bot): add client ID to recording infos
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Feb 9, 2024
1 parent 4bc7268 commit 513dced
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/bot/src/modules/recorder/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export default class Recording {
avatar: this.user.dynamicAvatarURL('png', 256)
},
requesterId: this.user.id,
client: {
id: this.recorder.client.bot.user.id
},
startTime: this.startedAt.toISOString(),
expiresAfter: rewards.downloadExpiryHours,
features: rewards.features.reduce((acc, cur) => ({ ...acc, [cur]: true }), {} as { [key: string]: boolean })
Expand Down Expand Up @@ -400,7 +403,7 @@ export default class Recording {
embeds: [
{
title: `Failed to upload to ${service}`,
description: `Unable to connect to the Cloud Backup microservice. You will need to manually upload your recording to your ${service}.`,
description: `Unable to connect to the Cloud Backup microservice. You will need to manually upload your recording to ${service}.`,
color: 0xe74c3c
}
]
Expand All @@ -417,7 +420,7 @@ export default class Recording {
embeds: [
{
title: `Failed to upload to ${service}`,
description: `Failed to upload recording \`${this.id}\` to ${service}. You may need to manually upload it to your ${service}, or possibly re-connect your ${service}.\n\n- **\`${response.error}\`**`,
description: `Failed to upload recording \`${this.id}\` to ${service}. You may need to manually upload it to ${service}, or possibly re-connect to ${service}.\n\n- **\`${response.error}\`**`,
color: 0xe74c3c
}
]
Expand Down

0 comments on commit 513dced

Please sign in to comment.