Skip to content

Commit 3f42f07

Browse files
authored
feat: update condition that checks if video exists or not
1 parent 0481cdd commit 3f42f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/video.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default async function (msg: Message) {
3434
const search = await yt.search(query, { type: "video" });
3535

3636
const video = search.results[0];
37-
if (!video) {
37+
if (!video.video_id) {
3838
await msg.reply("Unable to find resources for the given query.");
3939
return;
4040
}

0 commit comments

Comments
 (0)