Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task EnsureCommandRegistration() { var botCommands = await GetCommandConfigs(); if (botCommands != null && _commandConfig.EnsureOnStartup) { await _botClient.SetMyCommandsAsync(botCommands); } else { await _botClient.DeleteMyCommandsAsync(); } }