Table of Contents

Method ModifyJoinRequestsAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

ModifyJoinRequestsAsync(ulong, bool, string?, CancellationToken)

Modifies a join request.

[DiscordUnreleased("This feature is not available for bots at the current time")]
[Obsolete("This feature is not available for bots at the current time", true)]
public Task<DiscordGuildJoinRequest> ModifyJoinRequestsAsync(ulong joinRequestId, bool approve, string? rejectionReason, CancellationToken cancellationToken = default)

Parameters

joinRequestId ulong

The ID of the join request.

approve bool

Whether to approve or deny the request.

rejectionReason string

The optional rejection reason.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordGuildJoinRequest>