andersfylling / disgord

Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice
BSD 3-Clause "New" or "Revised" License
502 stars 71 forks source link

feat: disgordtest package #425

Closed andersfylling closed 2 years ago

andersfylling commented 2 years ago

Description

There is some stuff I'd like exported, but doesn't really belong in the disgord package. One of these are implementations for the query builder interfaces, first introduced by @JakeMakesStuff . I think these are nice, but they waste a lot of space in the docs and id like to move them to a more appropriate package.

First round is to auto generate these nop query builders from the interfaces.

Other functionality that may be moved to disgordutil is everything in utils.go, perhaps sorting.. we will see.

A disgordtest package will be created later, in a new PR.

Breaking Change?

no

Benchmarks

Checklist:

andersfylling commented 2 years ago

I think I'm going to make this PR about disgordtest instead. The QueryBuilders are for testing only.

Sadly I just realised that this is blocked until the QueryUpdates either gets a interface or are removed. They currently return a unexported type which makes it impossible to implement them outside of disgord.