diff --git a/src/main/java/fr/rakambda/rsndiscord/spring/interaction/button/impl/weward/WewardInterestButtonHandler.java b/src/main/java/fr/rakambda/rsndiscord/spring/interaction/button/impl/weward/WewardInterestButtonHandler.java index 2a9ef2d0..8f8e48b0 100644 --- a/src/main/java/fr/rakambda/rsndiscord/spring/interaction/button/impl/weward/WewardInterestButtonHandler.java +++ b/src/main/java/fr/rakambda/rsndiscord/spring/interaction/button/impl/weward/WewardInterestButtonHandler.java @@ -50,7 +50,7 @@ public String getComponentId(){ @NotNull @Override public CompletableFuture executeGuild(@NotNull ButtonInteraction event, @NotNull Guild guild, @NotNull Member member) throws InvalidChannelTypeException{ - var locale = event.getUserLocale(); + var locale = event.getGuildLocale(); if(Objects.nonNull(event.getMessage().getStartedThread())){ var deferred = event.deferReply(true).submit(); diff --git a/src/main/java/fr/rakambda/rsndiscord/spring/interaction/slash/impl/waward/AddCommand.java b/src/main/java/fr/rakambda/rsndiscord/spring/interaction/slash/impl/waward/AddCommand.java index 70a1a31c..ebc07e23 100644 --- a/src/main/java/fr/rakambda/rsndiscord/spring/interaction/slash/impl/waward/AddCommand.java +++ b/src/main/java/fr/rakambda/rsndiscord/spring/interaction/slash/impl/waward/AddCommand.java @@ -118,7 +118,7 @@ private Stream getPacksStartingWith(@NotNull String value){ @NotNull public CompletableFuture executeGuild(@NotNull SlashCommandInteraction event, @NotNull Guild guild, @NotNull Member member) throws RequestFailedException{ var deferred = event.deferReply(false).submit(); - var locale = event.getUserLocale(); + var locale = event.getGuildLocale(); var content = localizationService.translate(locale, "weward.card-added", member.getAsMention(),