diff options
author | Jordan <me@jordan.im> | 2022-03-17 09:43:29 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2022-03-17 09:43:29 -0700 |
commit | 66bfe530b4fd5cb9755337ce718df26ee81f1b77 (patch) | |
tree | 9dfc8a79183b8bffc12db5a92f957e3bfd37d4f2 /vendor/github.com/bwmarrin/discordgo/types.go | |
parent | 2f0b35e3c25bc4394f3288e1baa77d250cb510ed (diff) | |
download | keep-66bfe530b4fd5cb9755337ce718df26ee81f1b77.tar.gz keep-66bfe530b4fd5cb9755337ce718df26ee81f1b77.zip |
misc: go get -u ./... ; go mod vendor
Diffstat (limited to 'vendor/github.com/bwmarrin/discordgo/types.go')
-rw-r--r-- | vendor/github.com/bwmarrin/discordgo/types.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vendor/github.com/bwmarrin/discordgo/types.go b/vendor/github.com/bwmarrin/discordgo/types.go index c0ce013..7f969ae 100644 --- a/vendor/github.com/bwmarrin/discordgo/types.go +++ b/vendor/github.com/bwmarrin/discordgo/types.go @@ -12,18 +12,8 @@ package discordgo import ( "encoding/json" "net/http" - "time" ) -// Timestamp stores a timestamp, as sent by the Discord API. -type Timestamp string - -// Parse parses a timestamp string into a time.Time object. -// The only time this can fail is if Discord changes their timestamp format. -func (t Timestamp) Parse() (time.Time, error) { - return time.Parse(time.RFC3339, string(t)) -} - // RESTError stores error information about a request with a bad response code. // Message is not always present, there are cases where api calls can fail // without returning a json message. |