Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityType struct is Incomplete #958

Closed
vertex-admin opened this issue Jun 23, 2021 · 1 comment · Fixed by #990
Closed

ActivityType struct is Incomplete #958

vertex-admin opened this issue Jun 23, 2021 · 1 comment · Fixed by #990

Comments

@vertex-admin
Copy link
Contributor

vertex-admin commented Jun 23, 2021

For some reason, ActivityTypeWatching is commented out in structs.go with the comment "// not valid in this use case?"

It works just fine and we should uncomment it:

err := bot.UpdateStatusComplex(discordgo.UpdateStatusData{
	Activities: []*discordgo.Activity{
		{
			Name: "you",
			Type: discordgo.ActivityTypeWatching,
		},
	},
	Status: "online",
})
@MrFastDie
Copy link

There is a 5th type aswell (Competing) https://discord.com/developers/docs/topics/gateway#activity-object-activity-types

Furthermore many more posibilities have been added to the activity: https://discord.com/developers/docs/topics/gateway#activity-object

I've come along this since setting emojies as unicode stopped working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants