1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-16 03:44:26 +00:00

State: Fixed an error related to the last commit

This commit is contained in:
diamondburned (Forefront) 2020-02-10 20:28:36 -08:00
parent 0f3eb688e1
commit 8e3826e5d6
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ func mockRequest(t *testing.T, l *Limiter, path string, headers http.Header) {
// This test takes ~2 seconds to run // This test takes ~2 seconds to run
func TestRatelimitReset(t *testing.T) { func TestRatelimitReset(t *testing.T) {
l := NewLimiter() l := NewLimiter("")
headers := http.Header{} headers := http.Header{}
headers.Set("X-RateLimit-Remaining", "0") headers.Set("X-RateLimit-Remaining", "0")
@ -54,7 +54,7 @@ func TestRatelimitReset(t *testing.T) {
// This test takes ~1 seconds to run // This test takes ~1 seconds to run
func TestRatelimitGlobal(t *testing.T) { func TestRatelimitGlobal(t *testing.T) {
l := NewLimiter() l := NewLimiter("")
headers := http.Header{} headers := http.Header{}
headers.Set("X-RateLimit-Global", "1.002") headers.Set("X-RateLimit-Global", "1.002")

View file

@ -459,7 +459,7 @@ func (s *DefaultStore) MessageSet(message *discord.Message) error {
if message.Content != "" { if message.Content != "" {
m.Content = message.Content m.Content = message.Content
} }
if message.EditedTimestamp != nil { if message.EditedTimestamp.Valid() {
m.EditedTimestamp = message.EditedTimestamp m.EditedTimestamp = message.EditedTimestamp
} }
if message.Mentions != nil { if message.Mentions != nil {