Merge pull request #16 from gdraynz/user-agent
Add DiscordBot user agent
This commit is contained in:
commit
626946ebd4
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ func (s *Session) Request(method, urlStr string, data interface{}) (response []b
|
|||
}
|
||||
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("User-Agent", "DiscordBot (https://github.com/bwmarrin/discordgo, v0.0.0)")
|
||||
client := &http.Client{Timeout: (20 * time.Second)}
|
||||
|
||||
resp, err := client.Do(req)
|
||||
|
|
Loading…
Reference in a new issue