Skip to content

Commit d862116

Browse files
committed
better feedback for update
1 parent 16aa0da commit d862116

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

botfest/src/main/kotlin/net/modfest/botfest/extensions/SubmissionCommands.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,11 @@ class SubmissionCommands : Extension(), KordExKoinComponent {
445445

446446
platform.withAuth(this.user).updateSubmissionMeta(curEvent, subId)
447447

448-
val updatedSubmission = platform.getUserSubmissions(this.user.id).find { it.id == subId }
449-
450448
ackEphemeral {
451449
content = Translations.Commands.Submission.Update.Meta.Response.success
452450
.withContext(this@action)
453451
.translateNamed(
454-
"subId" to subId,
455-
"versionId" to (updatedSubmission?.platform?.inner as Modrinth).versionId
452+
"subId" to subId
456453
)
457454
}
458455
}

botfest/src/main/resources/translations/botfest/strings.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ commands.submission.update.version.name=version
9191
commands.submission.update.version.description=Update modrinth submission to the latest compatible version
9292
commands.submission.update.version.response.notfound=Unknown submission {subId}
9393
commands.submission.update.version.response.notmodrinth=Can't update a non-modrinth submission!
94-
commands.submission.update.version.response.success=Successfully edited the data for {subId}
94+
commands.submission.update.version.response.success=Successfully updated {subId} to version `{versionId}`
9595
commands.submission.update.meta.name=meta
96-
commands.submission.update.meta.description=Update modrinth submission metadata
96+
commands.submission.update.meta.description=Update modrinth submission with new metadata and images
9797
commands.submission.update.meta.response.notfound=Unknown submission {subId}
9898
commands.submission.update.meta.response.notmodrinth=Can't update a non-modrinth submission!
99-
commands.submission.update.meta.response.success=Successfully edited the data for {subId}
99+
commands.submission.update.meta.response.success=Updated the metadata and images for {subId}
100100
commands.submission.delete.name=unsubmit
101101
commands.submission.delete.description=Withdraw your submission
102102
commands.submission.delete.response.notfound=Unknown submission {subId}

0 commit comments

Comments
 (0)