hugolgst/rich-go

Example code in README has an error

Opened this issue · 0 comments

You can't use time.Now() directly, it needs to be a pointer.

Fixed version:

time := time.Now()
err = client.SetActivity(client.Activity{
        ...
	Timestamps: &client.Timestamps{
		Start: &time,
	},
})