andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
502 stars 71 forks source link

fix: remove unused and broken channel id checks in webhook #480

Closed DevYukine closed 2 years ago

DevYukine commented 2 years ago

Description

I've just realized that in #475 i've overseen the channel id check in validate when i updated Execute and other methods to use validate, once i further checked the actual implementation and discord docs, ChannelId is never actually needed when interacting with Webhooks in any way so i just went ahead and fully remove it so that Execute and other checks do not error anymore

Breaking Change?

no

Benchmarks

Checklist: