Fix playlist creation message key

Corrects the localization key from 'playlist.actions.create' to 'playlist.actions.created' when sending a message after playlist creation.
This commit is contained in:
Choco
2026-01-06 10:56:11 +08:00
parent 8fdceef4db
commit dfa0616271

View File

@@ -391,7 +391,7 @@ class Playlists(commands.Cog, name="playlist"):
data = {'uri': link, 'perms': {'read': []}, 'name': name, 'type': 'link'} if link else {'tracks': [], 'perms': {'read': [], 'write': [], 'remove': []}, 'name': name, 'type': 'playlist'}
await MongoDBHandler.update_user(ctx.author.id, {"$set": {f"playlist.{assign_playlist_id([data for data in user])}": data}})
await send_localized_message(ctx, "playlist.actions.create", name)
await send_localized_message(ctx, "playlist.actions.created", name)
@playlist.command(name="delete", aliases=get_aliases("delete"))
@app_commands.describe(name="The name of the playlist.")