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:
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
|
// 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")
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue