disgoorg/disgo

json unmarshal error on (rest.Channels).GetWebhooks

ikafly144 opened this issue · 0 comments

When I run (rest.Channels).GetWebhooks I get the error below

error unmarshalling response body: json: cannot unmarshal object into Go value of type discord.Webhook

I think it's probably because it's passing []discord.Webhook to rsBody in the (rest.Client).Do function.
So the same thing happens with (rest.Guilds).GetAllWebhooks