1 parent 0481cdd commit 3f42f07Copy full SHA for 3f42f07
1 file changed
src/commands/video.ts
@@ -34,7 +34,7 @@ export default async function (msg: Message) {
34
const search = await yt.search(query, { type: "video" });
35
36
const video = search.results[0];
37
- if (!video) {
+ if (!video.video_id) {
38
await msg.reply("Unable to find resources for the given query.");
39
return;
40
}
0 commit comments