Skip to content

Commit 857bdb7

Browse files
update src/events/Interaction/InteractionCreate.ts
1 parent 094104a commit 857bdb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/events/Interaction/InteractionCreate.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ export default new Event(
1919

2020
if (!command) return;
2121

22-
let l: TFunction | undefined;
22+
let lang: TFunction | undefined;
2323

2424
switch (null) {
2525
case "pt-BR":
26-
l = i18next.getFixedT("pt-BR");
26+
lang = i18next.getFixedT("pt-BR");
2727
break;
2828
case "en-US":
29-
l = i18next.getFixedT("en-US");
29+
lang = i18next.getFixedT("en-US");
3030
break;
3131
default:
32-
l = i18next.getFixedT("en-US");
32+
lang = i18next.getFixedT("en-US");
3333
}
3434

3535
if (
@@ -46,7 +46,7 @@ export default new Event(
4646
context,
4747
client,
4848
interaction,
49-
l,
49+
lang,
5050
});
5151
}
5252
},

0 commit comments

Comments
 (0)