Fixed auto role add

This commit is contained in:
Sven Heidemann 2023-09-29 19:19:23 +02:00
parent 7e6053768f
commit 3117f617d9
5 changed files with 5 additions and 5 deletions

View File

@ -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": {

View File

@ -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)

View File

@ -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",

View File

@ -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;
}

View File

@ -2,6 +2,6 @@
"WebVersion": {
"Major": "1",
"Minor": "1",
"Micro": "7"
"Micro": "8"
}
}