mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
fixed some random errors
This commit is contained in:
parent
00d63d01b0
commit
5ae0d289e1
5 changed files with 11 additions and 11 deletions
|
@ -41,7 +41,7 @@ class JaBaClient extends Client {
|
||||||
this.player.events.on("playerStart", async (queue, track) => {
|
this.player.events.on("playerStart", async (queue, track) => {
|
||||||
const m = (
|
const m = (
|
||||||
await queue.metadata.channel.send({
|
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;
|
).id;
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ class Play extends BaseCommand {
|
||||||
|
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
content: interaction.translate("music/play:ADDED_QUEUE", {
|
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}`,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,9 @@ class CreateTicketEmbed extends BaseCommand {
|
||||||
interaction.data.guild = await client.findOrCreateGuild(interaction.guildId);
|
interaction.data.guild = await client.findOrCreateGuild(interaction.guildId);
|
||||||
|
|
||||||
const guildData = interaction.guild.data,
|
const guildData = interaction.guild.data,
|
||||||
ticketsCategory = guildData.plugins.tickets.ticketsCategory,
|
ticketsCategory = guildData.plugins?.tickets?.ticketsCategory,
|
||||||
ticketLogs = guildData.plugins.tickets.ticketLogs,
|
ticketLogs = guildData.plugins?.tickets?.ticketLogs,
|
||||||
transcriptionLogs = guildData.plugins.tickets.transcriptionLogs;
|
transcriptionLogs = guildData.plugins?.tickets?.transcriptionLogs;
|
||||||
|
|
||||||
const button = interaction.component;
|
const button = interaction.component;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"canvas": "^2.11.2",
|
"canvas": "^2.11.2",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"cron": "^2.4.4",
|
"cron": "^2.4.4",
|
||||||
"discord-api-types": "^0.37.68",
|
"discord-api-types": "^0.37.71",
|
||||||
"discord-giveaways": "^6.0.1",
|
"discord-giveaways": "^6.0.1",
|
||||||
"discord-player": "^6.6.7",
|
"discord-player": "^6.6.7",
|
||||||
"discord.js": "^14.14.1",
|
"discord.js": "^14.14.1",
|
||||||
|
|
|
@ -30,8 +30,8 @@ dependencies:
|
||||||
specifier: ^2.4.4
|
specifier: ^2.4.4
|
||||||
version: 2.4.4
|
version: 2.4.4
|
||||||
discord-api-types:
|
discord-api-types:
|
||||||
specifier: ^0.37.68
|
specifier: ^0.37.71
|
||||||
version: 0.37.68
|
version: 0.37.71
|
||||||
discord-giveaways:
|
discord-giveaways:
|
||||||
specifier: ^6.0.1
|
specifier: ^6.0.1
|
||||||
version: 6.0.1(discord.js@14.14.1)
|
version: 6.0.1(discord.js@14.14.1)
|
||||||
|
@ -735,8 +735,8 @@ packages:
|
||||||
resolution: {integrity: sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==}
|
resolution: {integrity: sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/discord-api-types@0.37.68:
|
/discord-api-types@0.37.71:
|
||||||
resolution: {integrity: sha512-KmRAd3kjsgHnkani0R6RvLPIyE3T1ExvVquCyWWautU4tbFmGyici14h9L/rqF6DR4LAi/+R8ITWdX2B+MpkrA==}
|
resolution: {integrity: sha512-oYDVWoiQdblr9DpwOgpi5d78dVhPcoN9YZCCqYZf2T0v9+iICs7k2bYGumoHuYMtaIitpp5aQNs+2guVkgjbOA==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/discord-giveaways@6.0.1(discord.js@14.14.1):
|
/discord-giveaways@6.0.1(discord.js@14.14.1):
|
||||||
|
@ -778,7 +778,7 @@ packages:
|
||||||
'@discord-player/ffmpeg': 0.1.0
|
'@discord-player/ffmpeg': 0.1.0
|
||||||
'@discord-player/opus': 0.1.2
|
'@discord-player/opus': 0.1.2
|
||||||
'@types/ws': 8.5.10
|
'@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)
|
prism-media: 1.3.5(@discordjs/opus@0.9.0)
|
||||||
tslib: 2.6.2
|
tslib: 2.6.2
|
||||||
ws: 8.14.2
|
ws: 8.14.2
|
||||||
|
|
Loading…
Reference in a new issue