ytSearch
Documentation for ytSearch function (Can be used to get a youtube video details from a search term)
Example
const client = // your client
const addon = require("@pgamerx/djs-addon")
await addon.ytSearch(message,{
api_key: // Your youtube v3 API key
channels: ["channel_id_1"] // where bot can run this function
query: "Never gonna give you up" // query you want to search
embed_color: HexColorString, // colour of embed
embed_footer: "Developed by PGamerX" // footer of embed
})
Parameters guide
Name
Type
Required
api_key
String
query
String
channels
StringArray
embed_color
HexColorSting
embed_footer
String
Last updated
Was this helpful?