fix (settings): Revert field autoformat.
Removed `accepts` and `desc` auto-formatting due to clash with keys.
This commit is contained in:
@@ -214,20 +214,12 @@ class InteractiveSetting(BaseSetting[ParentID, SettingData, SettingValue]):
|
|||||||
@property
|
@property
|
||||||
def desc(self):
|
def desc(self):
|
||||||
t = ctx_translator.get().t
|
t = ctx_translator.get().t
|
||||||
bot = ctx_bot.get()
|
return t(self._desc)
|
||||||
return t(self._desc).format(
|
|
||||||
bot=bot,
|
|
||||||
cmds=bot.core.mention_cache
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def accepts(self):
|
def accepts(self):
|
||||||
t = ctx_translator.get().t
|
t = ctx_translator.get().t
|
||||||
bot = ctx_bot.get()
|
return t(self._accepts)
|
||||||
return t(self._accepts).format(
|
|
||||||
bot=bot,
|
|
||||||
cmds=bot.core.mention_cache
|
|
||||||
)
|
|
||||||
|
|
||||||
async def write(self, **kwargs) -> None:
|
async def write(self, **kwargs) -> None:
|
||||||
await super().write(**kwargs)
|
await super().write(**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user