zumito-framework 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -185,6 +185,9 @@ export class InteractionHandler {
185
185
  if (!commandInstance) {
186
186
  throw new Error(`Command ${path[0]} not found or modal id bad formatted`);
187
187
  }
188
+ if (!guildSettings && interaction.guildId) {
189
+ guildSettings = await ServiceContainer.getService(GuildDataGetter).getGuildSettings(interaction.guildId);
190
+ }
188
191
  const framework = ServiceContainer.getService(ZumitoFramework);
189
192
  if (commandInstance.binds?.modalSubmit) {
190
193
  const trans = this.translationManager.getShortHandMethod('command.' + commandInstance.name, guildSettings?.lang);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",