diff --git a/common/src/main/java/net/lindseybot/shared/worker/impl/DefaultInteractionListener.java b/common/src/main/java/net/lindseybot/shared/worker/impl/DefaultInteractionListener.java index 3f95e2d..5bfc3b8 100644 --- a/common/src/main/java/net/lindseybot/shared/worker/impl/DefaultInteractionListener.java +++ b/common/src/main/java/net/lindseybot/shared/worker/impl/DefaultInteractionListener.java @@ -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; } @@ -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; }