Skip to content

Commit

Permalink
Fix context interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio20 committed Sep 29, 2024
1 parent 31b1942 commit 3d121e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void onGenericAutoCompleteInteraction(@NotNull GenericAutoCompleteInterac

@Override
public void onMessageContextInteraction(@NotNull MessageContextInteractionEvent event) {
String id = event.getFullCommandName().replace(" ", "/");
String id = event.getFullCommandName();
if (!this.service.hasMessageCommand(id)) {
return;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ public void onMessageContextInteraction(@NotNull MessageContextInteractionEvent

@Override
public void onUserContextInteraction(@NotNull UserContextInteractionEvent event) {
String id = event.getFullCommandName().replace(" ", "/");
String id = event.getFullCommandName();
if (!this.service.hasUserCommand(id)) {
return;
}
Expand Down

0 comments on commit 3d121e0

Please sign in to comment.