1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-27 20:58:50 +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
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")

View file

@ -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 {