Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @types/ffprobe to v1.1.8 #932

Merged
merged 2 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@types/centra": "2.2.3",
"@types/ffprobe": "1.1.4",
"@types/ffprobe": "1.1.8",
"@types/node": "20.11.20",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
Expand Down
11 changes: 5 additions & 6 deletions src/commands/joinsound/management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ export async function validateAndSaveJoinsound(
}
if (attachment.size > maximumSingleFileSize) {
interaction.followUp(
`The file you sent is larger than ${
maximumSingleFileSize / 1024
`The file you sent is larger than ${maximumSingleFileSize / 1024
} KB, which is the limit per file!`,
);
return;
Expand Down Expand Up @@ -187,13 +186,14 @@ export async function validateAndSaveJoinsound(
);
return;
}
if (!firstStream.duration) {
const duration = firstStream.duration ? Number(firstStream.duration) : null;
if (!duration || Number.isNaN(duration)) {
interaction.followUp(
"Failed to calculate the duration of the joinsound you're trying to add.",
);
return;
}
if (firstStream.duration > 8) {
if (duration > 8) {
interaction.followUp(
"The joinsound you're trying to add is longer than 8 seconds.",
);
Expand Down Expand Up @@ -346,8 +346,7 @@ export async function getJoinsoundOverviewOfUser(

info.push({
name: 'Storage Used by Joinsounds',
value: `**${(storageUsed / 1024).toFixed(1)} KB** / ${
joinsoundStorageUserLimit / 1024
value: `**${(storageUsed / 1024).toFixed(1)} KB** / ${joinsoundStorageUserLimit / 1024
} KB`,
inline: false,
});
Expand Down
Loading