// Code generated by generate/interfaces; DO NOT EDIT.

package disgord

import (
	"time"
)

func (g *GetMessages) URLQueryString() string {
	params := make(urlQuery)

	if !(g.Around == 0) {
		params["around"] = g.Around
	}

	if !(g.Before == 0) {
		params["before"] = g.Before
	}

	if !(g.After == 0) {
		params["after"] = g.After
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (g *GetArchivedThreads) URLQueryString() string {
	params := make(urlQuery)

	if !(g.Before == Time{time.Unix(0, 0)}) {
		params["before"] = g.Before
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (g *GetAuditLogs) URLQueryString() string {
	params := make(urlQuery)

	params["user_id"] = g.UserID

	params["action_type"] = g.ActionType

	if !(g.Before == 0) {
		params["before"] = g.Before
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (g *getGuildMembers) URLQueryString() string {
	params := make(urlQuery)

	if !(g.After == 0) {
		params["after"] = g.After
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (b *BanMember) URLQueryString() string {
	params := make(urlQuery)

	if !(b.DeleteMessageDays == 0) {
		params["delete_message_days"] = b.DeleteMessageDays
	}

	if !(b.Reason == "") {
		params["reason"] = b.Reason
	}

	return params.URLQueryString()
}

func (g *GetScheduledEvents) URLQueryString() string {
	params := make(urlQuery)

	if !(g.WithUserCount == false) {
		params["with_user_count"] = g.WithUserCount
	}

	return params.URLQueryString()
}

func (g *GetScheduledEvent) URLQueryString() string {
	params := make(urlQuery)

	if !(g.WithUserCount == false) {
		params["with_user_count"] = g.WithUserCount
	}

	return params.URLQueryString()
}

func (g *GetScheduledEventMembers) URLQueryString() string {
	params := make(urlQuery)

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	if !(g.WithMember == false) {
		params["with_member"] = g.WithMember
	}

	if !(g.Before == 0) {
		params["before"] = g.Before
	}

	if !(g.After == 0) {
		params["after"] = g.After
	}

	return params.URLQueryString()
}

func (g *getInviteQuery) URLQueryString() string {
	params := make(urlQuery)

	if !(g.WithMemberCount == false) {
		params["with_count"] = g.WithMemberCount
	}

	return params.URLQueryString()
}

func (g *GetReactionURL) URLQueryString() string {
	params := make(urlQuery)

	if !(g.Before == 0) {
		params["before"] = g.Before
	}

	if !(g.After == 0) {
		params["after"] = g.After
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (g *GetCurrentUserGuilds) URLQueryString() string {
	params := make(urlQuery)

	if !(g.Before == 0) {
		params["before"] = g.Before
	}

	if !(g.After == 0) {
		params["after"] = g.After
	}

	if !(g.Limit == 0) {
		params["limit"] = g.Limit
	}

	return params.URLQueryString()
}

func (e *execWebhook) URLQueryString() string {
	params := make(urlQuery)

	params["wait"] = e.Wait

	params["thread_id"] = e.ThreadID

	return params.URLQueryString()
}
