Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

Created confirm_thread_creation_timeout config

Open sebkuip opened this issue 2 years ago • 1 comments

This PR adds a config variable allowing users to set their own timeout for the confirm_thread_creation.

This required the addition of an ints category of configs for conversion as well.

To make the lower and upper limits work, I have added a new system allowing the setting of limits. This will be compared by a python statement like lower <= value <= upper only for keys specified. It will be tested when the value is set, and reverts to the previous value if invalid.

I have added a description in the json file, along with adding this config to the notes of all other related configs.

sebkuip avatar Sep 08 '23 10:09 sebkuip

Seems like there's a merge conflict. I don't have permission to make the necessary changes, but it looks like this could be fixed by changing ConfirmThreadCreationView in utils.py to take a timeout parameter, and then changing view to view = ConfirmThreadCreationView(timeout=self.bot.config[confirm_thread_creation_timeout]) in thread.py.

Taaku18 avatar Nov 19 '23 20:11 Taaku18