Skip to content

Commit

Permalink
Locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Oct 28, 2024
1 parent 33bfb10 commit 4985ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private Stream<String> 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(),
Expand Down

0 comments on commit 4985ea4

Please sign in to comment.