forked from pothtonswer/discordmuffin
Add DiscordBot user agent
This commit is contained in:
parent
5b5c678d6c
commit
ec31caac1b
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