diff options
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. |