Rollen per Reaktion hinzufügen (#54) #58

Merged
edraft merged 20 commits from #54 into master 2022-10-05 19:08:22 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2df4f90802 - Show all commits

View File

@ -72,7 +72,7 @@ class AutoRole(TableABC):
return str(f"""
UPDATE `AutoRoles`
SET `ServerId` = {self._server_id},
SET `DiscordMessageId` = {self._discord_message_id},
`DiscordMessageId` = {self._discord_message_id},
edraft marked this conversation as resolved Outdated

2 x SET in einem SQL-Statement?

2 x SET in einem SQL-Statement?
`LastModifiedAt` = '{self._modified_at}'
WHERE `AutoRoleId` = {self._auto_role_id};
""")

View File

@ -71,8 +71,8 @@ class AutoRoleRule(TableABC):
return str(f"""
UPDATE `AutoRoleRules`
SET `AutoRoleId` = {self._auto_role_id},
SET `DiscordEmojiName` = {self._discord_emoji_name},
SET `DiscordRoleId` = {self._discord_role_id},
`DiscordEmojiName` = {self._discord_emoji_name},
`DiscordRoleId` = {self._discord_role_id},
edraft marked this conversation as resolved Outdated

Mehrere SETs in einem SQL-Statement

Mehrere SETs in einem SQL-Statement
`LastModifiedAt` = '{self._modified_at}'
WHERE `AutoRoleRuleId` = {self._auto_role_rule_id};
""")