Properly update setting
This commit is contained in:
parent
4d4c3b0ff8
commit
6b09332792
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ class SettingsCog(commands.Cog):
|
|||
setting = Setting.objects(setting=setting, guild=guild).first()
|
||||
if not setting:
|
||||
setting = Setting(setting=setting, guild=guild, value=value)
|
||||
setting.value = value
|
||||
updated = setting.save()
|
||||
|
||||
return updated is not None
|
||||
|
|
Loading…
Add table
Reference in a new issue