wtf auth??
This commit is contained in:
parent
607d7e121c
commit
a3a1654030
14 changed files with 337 additions and 1 deletions
|
@ -42,6 +42,10 @@ func (c *DiscordClientMock) BotAuth(req *http.Request) {
|
|||
c.Called(req)
|
||||
}
|
||||
|
||||
func (c *DiscordClientMock) ClientAuth(req *http.Request, accessToken string) {
|
||||
c.Called(req, accessToken)
|
||||
}
|
||||
|
||||
func (c *DiscordClientMock) MockResponse(method, path string, statusCode int, data any) {
|
||||
body := bytes.Buffer{}
|
||||
json.NewEncoder(&body).Encode(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue