Table of Contents

Method RefreshCommandsAsync

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

RefreshCommandsAsync()

Refreshes your commands, used for refreshing choice providers or applying commands registered after the ready event on the discord client. Should only be run on the slash command extension linked to shard 0 if sharding.

Not recommended and should be avoided since it can make slash commands be unresponsive for a while.

public Task RefreshCommandsAsync()

Returns

Task