Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Commit 70addb8

Browse files
authored
fix: remove unused and broken channel id checks in webhook (#480)
1 parent 350e68c commit 70addb8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

webhook.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,13 @@ type webhookQueryBuilder struct {
5858
ctx context.Context
5959
flags Flag
6060
client *Client
61-
cid Snowflake
6261
webhookID Snowflake
6362
}
6463

6564
func (w *webhookQueryBuilder) validate() error {
6665
if w.client == nil {
6766
return ErrMissingClientInstance
6867
}
69-
if w.cid.IsZero() {
70-
return ErrMissingChannelID
71-
}
7268
if w.webhookID.IsZero() {
7369
return ErrMissingWebhookID
7470
}
@@ -204,7 +200,6 @@ type webhookWithTokenQueryBuilder struct {
204200
ctx context.Context
205201
flags Flag
206202
client *Client
207-
cid Snowflake
208203
webhookID Snowflake
209204
token string
210205
}
@@ -213,9 +208,6 @@ func (w *webhookWithTokenQueryBuilder) validate() error {
213208
if w.client == nil {
214209
return ErrMissingClientInstance
215210
}
216-
if w.cid.IsZero() {
217-
return ErrMissingChannelID
218-
}
219211
if w.webhookID.IsZero() {
220212
return ErrMissingWebhookID
221213
}

0 commit comments

Comments
 (0)