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

[Feature] Expose GetCurrentUser method & missing current user API methods #2574

Merged

Conversation

Misha-133
Copy link
Member

@Misha-133 Misha-133 commented Jan 26, 2023

This PR adds a public GetCurrentUserAsync method to DiscordRestClient, which can be used with bearer token & adds the missing current user guild member method.

Changes

  • add GetCurrentUserAsync method (resolves Add a way to get @me #2570)
  • add GetCurrentUserGuildMemberAsync to DiscordRestClient & RestUserGuild
  • add missing GuildFeatures property to IUserGuild
  • add docs page describing all methods available to use with bearer token

@Misha-133 Misha-133 marked this pull request as ready for review January 26, 2023 21:20
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/samples/current_user.cs Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
docs/guides/bearer_token/bearer_token_guide.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@csmir csmir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs/guides/toc.yml requires the following code:

image

@csmir csmir merged commit e3da96f into discord-net:dev Feb 6, 2023
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 this pull request may close these issues.

Add a way to get @me
3 participants