Skip to content

Commit

Permalink
Add support for setting a custom status (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 authored Aug 10, 2023
1 parent 864959c commit 76d3e4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gateway/gateway_messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,15 @@ func WithWatchingActivity(name string) PresenceOpt {
})
}

// WithCustomActivity creates a new activity of type discord.ActivityTypeCustom
func WithCustomActivity(status string) PresenceOpt {
return withActivity(discord.Activity{
Name: "Custom Status",
Type: discord.ActivityTypeCustom,
State: &status,
})
}

// WithCompetingActivity creates a new "Competing in ..." activity of type discord.ActivityTypeCompeting
func WithCompetingActivity(name string) PresenceOpt {
return withActivity(discord.Activity{
Expand Down

0 comments on commit 76d3e4d

Please sign in to comment.