diff --git a/commands/delete.js b/commands/delete.js index d0b3e39..c9b0f7a 100644 --- a/commands/delete.js +++ b/commands/delete.js @@ -11,7 +11,8 @@ export const raw = { name: "number", required: true, type: "INTEGER", - minValue: 1 + minValue: 1, + description: ".." } ] } @@ -20,7 +21,7 @@ export const exec = async function(i){ const player = i.client.players.get(i.guildId) if(!player)return i.reply({embeds:[new Embed().setAuthor({name: "エラー", iconURL: "attachment://error.png"}).setDescription("このサーバーでこのbotは音楽を再生していません")],files:[new MessageAttachment("./assets/error.png","error.png")]}) if(!i.member.voice?.channel)return i.reply({embeds:[new Embed().setAuthor({name: "エラー", iconURL: "attachment://error.png"}).setDescription("ボイスチャンネルに参加してください!")],files:[new MessageAttachment("./assets/error.png","error.png")]}) - const n = i.options.getIntger("number") + const n = i.options.getInteger("number") const select = player.tracks[n - 1] if(!select)return i.reply({embeds:[new Embed().setAuthor({name: "エラー", iconURL: "attachment://error.png"}).setDescription("その番号のトラックが見つかりませんでした!")],files:[new MessageAttachment("./assets/error.png","error.png")]}) player.tracks = player.tracks.filter((x, i) => i !== n - 1) diff --git a/package.json b/package.json index c6a715b..3a5764c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yt-bot", - "version": "2.1.0", + "version": "2.1.1", "description": "", "main": "index.mjs", "type": "module",