Fix some bugs
This commit is contained in:
@@ -220,7 +220,7 @@ class Playlists(commands.Cog, name="playlist"):
|
||||
data = {'uri': link, 'perms': {'read': []}, 'name': name, 'type': 'link'} if isLinkType else {
|
||||
'tracks': [], 'perms': {'read': [], 'write': [], 'remove': []}, 'name': name, 'type': 'playlist'}
|
||||
await update_playlist(ctx.author.id, {f"playlist.{assign_playlistId([data for data in user])}": data})
|
||||
await ctx.send(get_lang(ctx.guild.id, 'playlistCreated'))
|
||||
await ctx.send(get_lang(ctx.guild.id, 'playlistCreated').format(name))
|
||||
|
||||
@playlist.command(name="delete", aliases=get_aliases("delete"))
|
||||
@app_commands.describe(name="The name of the playlist.")
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
"overPlaylistCreation": "Sie können nicht mehr als `{0}` Wiedergabelisten erstellen!",
|
||||
"playlistExists": "Playlist [`{0}`] existiert bereits.",
|
||||
"playlistNotInvaildUrl": "Bitte geben Sie einen gültigen Link oder öffentlichen Spotify- oder YouTube-Playlist-Link ein.",
|
||||
"playlistCreated": "Sie haben die Wiedergabeliste „{0}“ erstellt. Geben Sie /playlist view ein, um weitere Informationen zu erhalten.",
|
||||
"playlistCreated": "Sie haben die Wiedergabeliste `{0}` erstellt. Geben Sie /playlist view ein, um weitere Informationen zu erhalten.",
|
||||
"playlistRenamed": "Sie haben `{0}` in `{1}` umbenannt.",
|
||||
"playlistLimitTrack": "Sie haben die Grenze erreicht! Du kannst deiner Playlist nur `{0}` Songs hinzufügen.",
|
||||
"playlistPlaylistLink": "Sie dürfen keinen Playlist-Link verwenden.",
|
||||
|
||||
@@ -265,8 +265,9 @@ async def process_methods(websocket, bot: commands.Bot, data: dict) -> None:
|
||||
return
|
||||
|
||||
player: Player = guild.voice_client
|
||||
if not player or not Member:
|
||||
if not player or not member:
|
||||
return
|
||||
|
||||
try:
|
||||
resp: dict = await method(player, member, data)
|
||||
if resp:
|
||||
|
||||
@@ -22,8 +22,8 @@ $(document).ready(function () {
|
||||
$(".thumbnail-background").css({
|
||||
"background": `linear-gradient(-132deg, ${colors[0]}, ${colors[1]}, ${colors[2]}, ${colors[3]})`,
|
||||
"width": "70%",
|
||||
"padding-bottom": "70%"
|
||||
})
|
||||
"padding-bottom": "70%",
|
||||
});
|
||||
})
|
||||
.catch(error => { return });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user