GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — support invite target users by AlexanderTPohl · Pull Request #2428 · DSharpPlus/DSharpPlus

Conversation

@AlexanderTPohl

@AlexanderTPohl AlexanderTPohl commented Apr 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • This pull request was written by AI
  • This pull request was assisted by AI, but you wrote the final code
  • This pull request did not involve AI in any way

Summary

Implemented support for all invite target users endpoints

Details

Adds support for all target user endpoints and modified the CreateInvite endpoint to support the invite creation with target users.
The in the api requried csv file is created from IEnumerable<ulong> and deserialized to IReadOnlyList<ulong> to simplify usage.

Changes proposed

  • MultipartRestRequest now supports to set the fieldname for files
  • CreateChannelInvite supports the invite creation with Targetusers
  • Added support for GetTargetUsers endpoint
  • Added support for UpdateTargetUsers endpoint
  • Added support for GetTargetUsersJobStatus endpoint
  • Added utilities methods for creating and reading a csv stream

Notes

For the exceptions to work properly a fix for the issued adressed in #2426 is needed.

  • All features in this pull request were tested.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@AlexanderTPohl
support invite target users
248a7e5
@akiraveliara akiraveliara added enhancement core labels Apr 3, 2026
@akiraveliara akiraveliara added this to the v5.0 milestone Apr 3, 2026
akiraveliara
akiraveliara requested changes Apr 3, 2026
View reviewed changes

@akiraveliara akiraveliara left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

please note that i wrote the suggested changes off memory in the github web UI, you should test whether they work (or come up with something similar, point is that target_users is intended for potentially very large collections and i would like the code to allocate less intermediary memory)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread DSharpPlus/Net/Rest/MultipartRestRequest.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Entities/Channel/DiscordChannel.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Entities/Invite/DiscordInvite.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Entities/Invite/DiscordInvite.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Entities/Invite/DiscordInvite.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Utilities.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Utilities.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Utilities.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Utilities.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread DSharpPlus/Utilities.cs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@akiraveliara akiraveliara mentioned this pull request Apr 3, 2026
v5 breaking changes tracking issue #1585
Open
AlexanderTPohl added 3 commits April 4, 2026 15:45
@AlexanderTPohl
implemented suggestions
85d1c62
@AlexanderTPohl
Merge remote-tracking branch 'upstream/main/master' into invite-targe…
e123c5c
…tusers
@AlexanderTPohl
solve merge conflict
8a22ebb
@AlexanderTPohl
AlexanderTPohl requested a review from akiraveliara April 4, 2026 13:58
akiraveliara
akiraveliara approved these changes Apr 4, 2026
View reviewed changes

@akiraveliara akiraveliara left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

one review comment remains from my previous review (line splitting on DiscordChannel.CreateInviteAsync), rtm otherwise

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
AlexanderTPohl added 2 commits April 4, 2026 18:25
@AlexanderTPohl
codestyle change
98ff7d3
@AlexanderTPohl
corrected code style one cmore
dc3b78e
akiraveliara
akiraveliara approved these changes Apr 4, 2026
View reviewed changes
@akiraveliara
akiraveliara merged commit ae799a4 into DSharpPlus:master Apr 4, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@AlexanderTPohl
AlexanderTPohl deleted the invite-targetusers branch April 4, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@akiraveliara akiraveliara akiraveliara approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

core enhancement

Projects

None yet

Milestone

v5.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@AlexanderTPohl @akiraveliara
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.