customsearch.cse
.list({
auth: config.GOOGLE_SEARCH_API_KEY,
cx: config.GOOGLE_CUSTOM_SEARCH_ID,
searchType: 'image',
q: query?.toString(),
})
.then(res => res.data.items)
.then(results => {
if (!results) interaction.reply('**Nothing found**');
interaction.reply(results[0]?.link);
});