fix(discord): use net.fetch instead of fetch

This commit is contained in:
JellyBrick
2024-12-20 23:23:15 +09:00
parent ea50cb1e65
commit d3c7848896

View File

@ -142,7 +142,7 @@ const handleData = async (
const thumbnails = videoDetails.thumbnail?.thumbnails;
songInfo.imageSrc = thumbnails.at(-1)?.url.split('?')[0];
if (songInfo.imageSrc && !(await fetch(songInfo.imageSrc)).ok) {
if (songInfo.imageSrc && !(await net.fetch(songInfo.imageSrc)).ok) {
songInfo.imageSrc = thumbnails.at(-1)?.url;
}