fix HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0} (#1586)
fix file=bot.go:426 level=error service=bot error starting bot HTTP 401 Unauthorized, {"message": "401: Unauthorized", "code": 0}
see https://github.com/bwmarrin/discordgo#usage
			
			
This commit is contained in:
		| @@ -87,7 +87,7 @@ func (d *discordInput) Start() error { | ||||
| 	} | ||||
|  | ||||
| 	var err error | ||||
| 	d.session, err = discordgo.New(d.token) | ||||
| 	d.session, err = discordgo.New("Bot " + d.token) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user