Skip to content

Commit

Permalink
chore: update license year to 2024 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf authored Dec 31, 2023
1 parent 33c3d91 commit c268694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022-2023 Dunkan
Copyright (c) 2022-2024 Dunkan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function middleware<C extends Context = Context>(
async function setLocale(locale: LocaleId): Promise<void> {
if (!useSession) {
throw new Error(
"You are calling `ctx.i18n.setLocale()` without setting `useSession` to `true` \
"You are calling `ctx.i18n.setLocale()` without setting `useSession` to `true` \
in the configuration. It doesn't make sense because you cannot set a locale in \
the session that way. When you call `ctx.i18n.setLocale()`, the bot tries to \
store the user locale in the session storage. But since you don't have session \
Expand Down

0 comments on commit c268694

Please sign in to comment.