You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.
Hello, I liked this package so i started using it. It works great except for one issue I have been facing with the guilds/${guildID}/channels endpoint and not with all guilds
const{ Rest }=require('@spectacles/rest');constrest=newRest(config.token);constfetch=require('node-fetch');asyncfunctionrestJS(guildID){constres=awaitrest.get(`/guilds/${guildID}/channels`)returnres;}asyncfunctionnodeFETCH(guildID){constres=await(awaitfetch(`https://discordapp.com/api/v7/guilds/${guildID}/channels`,{method: 'GET',headers: {Authorization: `Bot ${config.token}`}})).json();returnres}constguild="id"awaitnodeFETCH(guild)// [ Objects ]awaitrestJS(guild)//STUCK and never resolves
Any idea? Is there any timeout option available to abort
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for bringing this up. We've had some issues with this in the past, but I thought they were all resolved. Unfortunately, it doesn't look like we've implemented timeout controls so I'll have to look into that as well.
Hello, I liked this package so i started using it. It works great except for one issue I have been facing with the
guilds/${guildID}/channels
endpoint and not with all guildsAny idea? Is there any timeout option available to abort
Thanks
The text was updated successfully, but these errors were encountered: