EmbarkStudios / discord-sdk

An open implementation of the Discord Game SDK in Rust
Apache License 2.0
150 stars 10 forks source link

feat: allow builder to set ActivityKind #40

Closed w-lfchen closed 1 month ago

w-lfchen commented 1 month ago

Checklist

Description of Changes

This pr adds a simple method to the ActivityBuilder that allows setting the ActivityKind field of the underlying ActivityArgs. The test case testing the builder has been updated to utilize this new method.

Additional Notes/Questions

Related Issues

38 allowed for serialization of this field, so I think it's only logical to allow it to be set in the builder as well.