fix (settings): Revert field autoformat.

Removed `accepts` and `desc` auto-formatting due to clash with keys.
This commit is contained in:
2023-07-18 08:52:37 +03:00
parent c21bbdde97
commit 8af5bd2c37

View File

@@ -214,20 +214,12 @@ class InteractiveSetting(BaseSetting[ParentID, SettingData, SettingValue]):
@property
def desc(self):
t = ctx_translator.get().t
bot = ctx_bot.get()
return t(self._desc).format(
bot=bot,
cmds=bot.core.mention_cache
)
return t(self._desc)
@property
def accepts(self):
t = ctx_translator.get().t
bot = ctx_bot.get()
return t(self._accepts).format(
bot=bot,
cmds=bot.core.mention_cache
)
return t(self._accepts)
async def write(self, **kwargs) -> None:
await super().write(**kwargs)