Discord botundaki hata

Nasıl aynı hocam? Bende gif olarak çalıştı, hata falan verdiyse atın.
Hata vermedi, böyle:

Ekran görüntüsü 2021-03-23 214913.png
 
Bende link atmıyor bana, siz şunu yazmadınız mı?
JavaScript:
if (msg.content == "!gif thor-ban"){
      const embed = new Discord.MessageEmbed()
      .setColor('RANDOM')

      .setImage("https://thumbs.gfycat.com/AssuredAcrobaticAchillestang-size_restricted.gif")



      msg.channel.send(embed);
}
Başka kod olmasın, sadece .setImage kalsın bu koddaki gibi.
1616525524357.png
 
Hocam terminale gelip refresh yazar mısınız?
PS C:\Users\Hp\Desktop\MASAÜSTÜ\Korax> refresh refresh : The term 'refresh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the nam e, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + refresh + ~~~~~~~ + CategoryInfo : ObjectNotFound: (refresh:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Böyle bir hata veriyor.
 
PS C:\Users\Hp\Desktop\MASAÜSTÜ\Korax> refresh refresh : The term 'refresh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the nam e, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + refresh + ~~~~~~~ + CategoryInfo : ObjectNotFound: (refresh:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Böyle bir hata veriyor.

Hocam arkadaşın attığı kod ile değiştirdiniz mi kodun şuan ki halini atar mısınız?
 
PS C:\Users\Hp\Desktop\MASAÜSTÜ\Korax> refresh refresh : The term 'refresh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the nam e, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + refresh + ~~~~~~~ + CategoryInfo : ObjectNotFound: (refresh:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Böyle bir hata veriyor.
Hocam arkadaşın attığı kod ile değiştirdiniz mi kodun şuan ki halini atar mısınız?
Hatanın sebebi açık, node.js'de refresh diye bir komut yok :) . Biz Ctrl+C yapıyoruz hocam.
 

Geri
Yukarı