Skip to content

Commit 7266716

Browse files
authored
Introduce QueryParams for use in rest endpoints (#403)
* Introduce QueryParams for use in rest endpoints * add "docs" lol
1 parent cffc8eb commit 7266716

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rest/query_params.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package rest
2+
3+
import (
4+
"github.com/disgoorg/disgo/discord"
5+
)
6+
7+
// QueryParams serves as a generic interface for implementations of rest endpoint query parameters.
8+
type QueryParams interface {
9+
// ToQueryValues transforms fields from the QueryParams interface implementations into discord.QueryValues.
10+
ToQueryValues() discord.QueryValues
11+
}

0 commit comments

Comments
 (0)