From 726671609cae7ee34a2854cb498db04dc5905493 Mon Sep 17 00:00:00 2001 From: Sebastian <42180891+sebm253@users.noreply.github.com> Date: Sun, 1 Dec 2024 17:24:51 +0100 Subject: [PATCH] Introduce QueryParams for use in rest endpoints (#403) * Introduce QueryParams for use in rest endpoints * add "docs" lol --- rest/query_params.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rest/query_params.go diff --git a/rest/query_params.go b/rest/query_params.go new file mode 100644 index 00000000..9d17c83d --- /dev/null +++ b/rest/query_params.go @@ -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 +}