Fix #6
This commit is contained in:
parent
fe13e8c9c1
commit
21db1896f9
1 changed files with 4 additions and 1 deletions
|
|
@ -126,6 +126,7 @@ kazagumo.on("playerStart", (player: KazagumoPlayer, track: KazagumoTrack) => {
|
||||||
content: `Now playing **${track.title}** by **${track.author}**`,
|
content: `Now playing **${track.title}** by **${track.author}**`,
|
||||||
})
|
})
|
||||||
.then((x: any) => {
|
.then((x: any) => {
|
||||||
|
//TODO: Use embed message instead
|
||||||
player.data.set("message", x);
|
player.data.set("message", x);
|
||||||
setTimeout(() => x.delete(), 3000);
|
setTimeout(() => x.delete(), 3000);
|
||||||
});
|
});
|
||||||
|
|
@ -133,7 +134,8 @@ kazagumo.on("playerStart", (player: KazagumoPlayer, track: KazagumoTrack) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
kazagumo.on("playerEnd", (player: KazagumoPlayer) => {
|
kazagumo.on("playerEnd", (player: KazagumoPlayer) => {
|
||||||
player.data.get("message")?.edit({ content: "Finished playing" });
|
//TODO: Use embed message instead
|
||||||
|
// player.data.get("message")?.edit({ content: "Finished playing" });
|
||||||
});
|
});
|
||||||
|
|
||||||
kazagumo.on("playerEmpty", (player: KazagumoPlayer) => {
|
kazagumo.on("playerEmpty", (player: KazagumoPlayer) => {
|
||||||
|
|
@ -141,6 +143,7 @@ kazagumo.on("playerEmpty", (player: KazagumoPlayer) => {
|
||||||
const channel = client.channels.cache.get(player.textId);
|
const channel = client.channels.cache.get(player.textId);
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
if (channel.type === ChannelType.GuildText) {
|
if (channel.type === ChannelType.GuildText) {
|
||||||
|
//TODO: Use embed message instead
|
||||||
channel
|
channel
|
||||||
.send({ content: "Destroyed player due to inactivity." })
|
.send({ content: "Destroyed player due to inactivity." })
|
||||||
.then((x: any) => {
|
.then((x: any) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue