Skip to content

Commit

Permalink
ただのミス
Browse files Browse the repository at this point in the history
  • Loading branch information
Googlefan256 committed Mar 29, 2022
1 parent 913c742 commit b736ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const play = async function(i,detail){
const player = new Player(i.client)
await player.join(i.member.voice.channel,i.channel)
player
.on("playing",(video) => player.loopstate === "single" && player.TextChannel.send({embeds:[new Embed().setAuthor({name:video.author.name,iconURL:video.author.avatar}).setTitle(video.title).setURL(video.url).setDescription(video.description).setImage(video.image).setFooter({text:`再生中です | Requested By ${video.requester}`})]}))
.on("playing",(video) => player.loopstate !== "single" ?? player.TextChannel.send({embeds:[new Embed().setAuthor({name:video.author.name,iconURL:video.author.avatar}).setTitle(video.title).setURL(video.url).setDescription(video.description).setImage(video.image).setFooter({text:`再生中です | Requested By ${video.requester}`})]}))
.once("end", async() => {
await player.destroy()
return player.TextChannel.send({embeds:[new Embed().setAuthor({name: "情報", iconURL: "attachment://info.png"}).setDescription("曲がなくなったため、再生を終了しました。")],files: [new MessageAttachment("./assets/info.png","info.png")]})
Expand Down

0 comments on commit b736ea0

Please sign in to comment.