From 5ae0d289e1f921b20a3f308f179c2c08951b9e6a Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Wed, 6 Mar 2024 13:57:03 +0500 Subject: [PATCH] fixed some random errors --- base/Client.js | 2 +- commands/Music/play.js | 2 +- commands/Tickets/createticketembed.js | 6 +++--- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/base/Client.js b/base/Client.js index 8bc7e1e2..ef57d45f 100644 --- a/base/Client.js +++ b/base/Client.js @@ -41,7 +41,7 @@ class JaBaClient extends Client { this.player.events.on("playerStart", async (queue, track) => { const m = ( await queue.metadata.channel.send({ - content: this.translate("music/play:NOW_PLAYING", { songName: track.title }, queue.metadata.data.guild.language), + content: this.translate("music/play:NOW_PLAYING", { songName: `${track.title} - ${track.author}` }, queue.metadata.data.guild.language), }) ).id; diff --git a/commands/Music/play.js b/commands/Music/play.js index 94c387da..bb57998d 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -68,7 +68,7 @@ class Play extends BaseCommand { interaction.editReply({ content: interaction.translate("music/play:ADDED_QUEUE", { - songName: searchResult.hasPlaylist() ? searchResult.playlist.title : searchResult.tracks[0].title, + songName: searchResult.hasPlaylist() ? searchResult.playlist.title : `${searchResult.tracks[0].title} - ${searchResult.tracks[0].author}`, }), }); } diff --git a/commands/Tickets/createticketembed.js b/commands/Tickets/createticketembed.js index 4f9d0ed1..9bc2c5f5 100644 --- a/commands/Tickets/createticketembed.js +++ b/commands/Tickets/createticketembed.js @@ -35,9 +35,9 @@ class CreateTicketEmbed extends BaseCommand { interaction.data.guild = await client.findOrCreateGuild(interaction.guildId); const guildData = interaction.guild.data, - ticketsCategory = guildData.plugins.tickets.ticketsCategory, - ticketLogs = guildData.plugins.tickets.ticketLogs, - transcriptionLogs = guildData.plugins.tickets.transcriptionLogs; + ticketsCategory = guildData.plugins?.tickets?.ticketsCategory, + ticketLogs = guildData.plugins?.tickets?.ticketLogs, + transcriptionLogs = guildData.plugins?.tickets?.transcriptionLogs; const button = interaction.component; diff --git a/package.json b/package.json index ad75cc1a..7435fcbe 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "canvas": "^2.11.2", "chalk": "^4.1.2", "cron": "^2.4.4", - "discord-api-types": "^0.37.68", + "discord-api-types": "^0.37.71", "discord-giveaways": "^6.0.1", "discord-player": "^6.6.7", "discord.js": "^14.14.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 251373dc..ddaa94b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ dependencies: specifier: ^2.4.4 version: 2.4.4 discord-api-types: - specifier: ^0.37.68 - version: 0.37.68 + specifier: ^0.37.71 + version: 0.37.71 discord-giveaways: specifier: ^6.0.1 version: 6.0.1(discord.js@14.14.1) @@ -735,8 +735,8 @@ packages: resolution: {integrity: sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==} dev: false - /discord-api-types@0.37.68: - resolution: {integrity: sha512-KmRAd3kjsgHnkani0R6RvLPIyE3T1ExvVquCyWWautU4tbFmGyici14h9L/rqF6DR4LAi/+R8ITWdX2B+MpkrA==} + /discord-api-types@0.37.71: + resolution: {integrity: sha512-oYDVWoiQdblr9DpwOgpi5d78dVhPcoN9YZCCqYZf2T0v9+iICs7k2bYGumoHuYMtaIitpp5aQNs+2guVkgjbOA==} dev: false /discord-giveaways@6.0.1(discord.js@14.14.1): @@ -778,7 +778,7 @@ packages: '@discord-player/ffmpeg': 0.1.0 '@discord-player/opus': 0.1.2 '@types/ws': 8.5.10 - discord-api-types: 0.37.68 + discord-api-types: 0.37.71 prism-media: 1.3.5(@discordjs/opus@0.9.0) tslib: 2.6.2 ws: 8.14.2