Skip to content

Commit

Permalink
defer info command
Browse files Browse the repository at this point in the history
  • Loading branch information
minisbett committed Dec 31, 2023
1 parent b9dbc4d commit da07cb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions huisbot/Modules/Utility/Info.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public InfoCommandModule(OsuApiService osu, HuisApiService huis)
[SlashCommand("info", "Displays info about the bot.")]
public async Task HandleAsync()
{
await DeferAsync();

// Return the info embed to the user.
await RespondAsync(embed: Embeds.Info(await _osu.IsV1AvailableAsync(), await _osu.IsV2AvailableAsync(), await _huis.IsAvailableAsync()));
}
Expand Down

0 comments on commit da07cb5

Please sign in to comment.