Table of Contents

Method UpdateStatusAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

UpdateStatusAsync(DiscordActivity, DiscordUserStatus?, DateTimeOffset?, int?)

Updates current user's activity and status.

public Task UpdateStatusAsync(DiscordActivity activity = null, DiscordUserStatus? userStatus = null, DateTimeOffset? idleSince = null, int? shardId = null)

Parameters

activity DiscordActivity

Activity to set.

userStatus DiscordUserStatus?

Status of the user.

idleSince DateTimeOffset?

Since when is the client performing the specified activity.

shardId int?

The ID of the shard whose status should be updated. Defaults to null, which will update all shards controlled by this DiscordClient.

Returns

Task