Skip to content

Commit

Permalink
fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Jan 8, 2025
1 parent 37aabb5 commit 1fe4951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FMBot.Bot/SlashCommands/PlaySlashCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public async Task RecapAsync(
public async Task RecapAllTime(string userId)
{
_ = DeferAsync();
_ = this.Context.DisableInteractionButtons(specificButtonOnly: InteractionConstants.RecapAlltime, addLoaderToSpecificButton: true);
_ = this.Context.DisableInteractionButtons(specificButtonOnly: $"{InteractionConstants.RecapAlltime}-{userId}", addLoaderToSpecificButton: true);

var contextUser = await this._userService.GetUserForIdAsync(int.Parse(userId));
var userSettings = await this._settingService.GetUser(null, contextUser, this.Context.Guild, this.Context.User, true);
Expand All @@ -475,7 +475,7 @@ public async Task RecapAllTime(string userId)
await this.Context.SendFollowUpResponse(this.Interactivity, response);
this.Context.LogCommandUsed(response.CommandResponse);

_ = this.Context.DisableInteractionButtons(specificButtonOnly: InteractionConstants.RecapAlltime);
_ = this.Context.DisableInteractionButtons(specificButtonOnly: $"{InteractionConstants.RecapAlltime}-{userId}");
}
catch (Exception e)
{
Expand Down

0 comments on commit 1fe4951

Please sign in to comment.