From 28e9df192cd641aa947b7c220e32c7e9a96cd4ce Mon Sep 17 00:00:00 2001 From: Conatum Date: Fri, 6 Oct 2023 10:23:16 +0300 Subject: [PATCH] tweak(settings): Default to disallowing Object. --- src/settings/setting_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/setting_types.py b/src/settings/setting_types.py index f5c99c5b..a654f07f 100644 --- a/src/settings/setting_types.py +++ b/src/settings/setting_types.py @@ -237,7 +237,7 @@ class ChannelSetting(Generic[ParentID, CT], InteractiveSetting[ParentID, int, CT _selector_placeholder = "Select a Channel" channel_types: list[discord.ChannelType] = [] - _allow_object = True + _allow_object = False @classmethod def _data_from_value(cls, parent_id, value, **kwargs): @@ -368,7 +368,7 @@ class RoleSetting(InteractiveSetting[ParentID, int, Union[discord.Role, discord. _accepts = _p('settype:role|accepts', "A role name or id") _selector_placeholder = "Select a Role" - _allow_object = True + _allow_object = False @classmethod def _get_guildid(cls, parent_id: int, **kwargs) -> int: