mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-15 19:33:17 +00:00
State: Fixed an error related to the last commit
This commit is contained in:
parent
0f3eb688e1
commit
8e3826e5d6
|
@ -24,7 +24,7 @@ func mockRequest(t *testing.T, l *Limiter, path string, headers http.Header) {
|
|||
|
||||
// This test takes ~2 seconds to run
|
||||
func TestRatelimitReset(t *testing.T) {
|
||||
l := NewLimiter()
|
||||
l := NewLimiter("")
|
||||
|
||||
headers := http.Header{}
|
||||
headers.Set("X-RateLimit-Remaining", "0")
|
||||
|
@ -54,7 +54,7 @@ func TestRatelimitReset(t *testing.T) {
|
|||
|
||||
// This test takes ~1 seconds to run
|
||||
func TestRatelimitGlobal(t *testing.T) {
|
||||
l := NewLimiter()
|
||||
l := NewLimiter("")
|
||||
|
||||
headers := http.Header{}
|
||||
headers.Set("X-RateLimit-Global", "1.002")
|
||||
|
|
|
@ -459,7 +459,7 @@ func (s *DefaultStore) MessageSet(message *discord.Message) error {
|
|||
if message.Content != "" {
|
||||
m.Content = message.Content
|
||||
}
|
||||
if message.EditedTimestamp != nil {
|
||||
if message.EditedTimestamp.Valid() {
|
||||
m.EditedTimestamp = message.EditedTimestamp
|
||||
}
|
||||
if message.Mentions != nil {
|
||||
|
|
Loading…
Reference in a new issue