From 3117f617d9dfefa7ce6fa11a3b61ae0af082e56b Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 29 Sep 2023 19:19:23 +0200 Subject: [PATCH] Fixed auto role add --- kdb-bot/src/bot/translation/de.json | 2 +- kdb-bot/src/modules/auto_role/command/auto_role_group.py | 2 +- kdb-web/package.json | 2 +- .../auto-role/components/auto-roles/auto-roles.component.ts | 2 +- kdb-web/src/assets/version.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kdb-bot/src/bot/translation/de.json b/kdb-bot/src/bot/translation/de.json index 6d8d1ba7..c1390bdf 100644 --- a/kdb-bot/src/bot/translation/de.json +++ b/kdb-bot/src/bot/translation/de.json @@ -124,7 +124,7 @@ "success": "auto-role {} wurde entfernt :D" }, "react": { - "success": "Alle Reaktionen wurden hinzugefügt", + "success": "Alle Reaktionen wurden hinzugefügt" }, "rule": { "add": { diff --git a/kdb-bot/src/modules/auto_role/command/auto_role_group.py b/kdb-bot/src/modules/auto_role/command/auto_role_group.py index 5582c758..3df551d4 100644 --- a/kdb-bot/src/modules/auto_role/command/auto_role_group.py +++ b/kdb-bot/src/modules/auto_role/command/auto_role_group.py @@ -258,7 +258,7 @@ class AutoRoleGroup(DiscordCommandABC): @remove.autocomplete("auto_role") async def react_autocomplete( - self, interaction: discord.Interaction, current: str + self, interaction: discord.Interaction, current: str ) -> TList[app_commands.Choice[str]]: return await self._auto_role_auto_complete(interaction, current) diff --git a/kdb-web/package.json b/kdb-web/package.json index 027cc595..a826fb6a 100644 --- a/kdb-web/package.json +++ b/kdb-web/package.json @@ -1,6 +1,6 @@ { "name": "kdb-web", - "version": "1.1.7", + "version": "1.1.8", "scripts": { "ng": "ng", "update-version": "ts-node update-version.ts", diff --git a/kdb-web/src/app/modules/view/server/auto-role/components/auto-roles/auto-roles.component.ts b/kdb-web/src/app/modules/view/server/auto-role/components/auto-roles/auto-roles.component.ts index 7091a167..2c77fede 100644 --- a/kdb-web/src/app/modules/view/server/auto-role/components/auto-roles/auto-roles.component.ts +++ b/kdb-web/src/app/modules/view/server/auto-role/components/auto-roles/auto-roles.component.ts @@ -199,7 +199,7 @@ export class AutoRolesComponent extends ComponentWithTable implements OnInit, On return; } - if (!newAutoRole.id || !newAutoRole.channelId && !newAutoRole.messageId) { + if (!newAutoRole.id && !this.isEditingNew || !newAutoRole.channelId && !newAutoRole.messageId) { return; } diff --git a/kdb-web/src/assets/version.json b/kdb-web/src/assets/version.json index ceed4a58..379057aa 100644 --- a/kdb-web/src/assets/version.json +++ b/kdb-web/src/assets/version.json @@ -2,6 +2,6 @@ "WebVersion": { "Major": "1", "Minor": "1", - "Micro": "7" + "Micro": "8" } } \ No newline at end of file