Skip to content

Commit

Permalink
Introduce QueryParams for use in rest endpoints (#403)
Browse files Browse the repository at this point in the history
* Introduce QueryParams for use in rest endpoints

* add "docs" lol
  • Loading branch information
sebm253 authored Dec 1, 2024
1 parent cffc8eb commit 7266716
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rest/query_params.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package rest

import (
"github.com/disgoorg/disgo/discord"
)

// QueryParams serves as a generic interface for implementations of rest endpoint query parameters.
type QueryParams interface {
// ToQueryValues transforms fields from the QueryParams interface implementations into discord.QueryValues.
ToQueryValues() discord.QueryValues
}

0 comments on commit 7266716

Please sign in to comment.