A Discord server's commandGroups setting stored in Kiera's DB is getting reset when a Guild update event is detected due to reusing the same .onGuildCreate upsert - This was intended way back when setup, however, the new setting was added here during the initial development of the setting's purpose. The placeholder value is causing an overwrite.
To Reproduce
Steps to reproduce the behaviour:
Use the /xtcommand command to set an integration's state true (also would affect false).
Change a top level setting (name, toggle, etc) for the server.
Try to use command contained within group (enabled), only to receive error.
Expected Behaviour
The /xtcommand integration group setting should only change when a server admin triggers the change.
Screenshots
Screenshots have been shared in chat to discuss and compare with 3rd party provider.
Findings / Bug
A Discord server's
commandGroups
setting stored in Kiera's DB is getting reset when a Guild update event is detected due to reusing the same.onGuildCreate
upsert - This was intended way back when setup, however, the new setting was added here during the initial development of the setting's purpose. The placeholder value is causing an overwrite.To Reproduce
Steps to reproduce the behaviour:
/xtcommand
command to set an integration's statetrue
(also would affect false).Expected Behaviour
The
/xtcommand
integration group setting should only change when a server admin triggers the change.Screenshots
Screenshots have been shared in chat to discuss and compare with 3rd party provider.