From a5c28f8b93bab580de5148bfbb8ec7f78280a32a Mon Sep 17 00:00:00 2001 From: Nekokatt <69713762+nekokatt@users.noreply.github.com> Date: Thu, 27 Aug 2020 13:39:42 +0100 Subject: [PATCH] Defaulted state to being enabled by default on BotApp. --- hikari/impl/bot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hikari/impl/bot.py b/hikari/impl/bot.py index 162f022abd..cff99cc69b 100644 --- a/hikari/impl/bot.py +++ b/hikari/impl/bot.py @@ -159,9 +159,8 @@ class BotApp( If `builtins.True`, the bot will not implement a cache, and will be considered stateless. If `builtins.False`, then a cache will be used. - While the cache components are a WIP, this will default to - `builtins.True`. This should be expected to be changed to - `builtins.False` before the first non-development release is made. + This defaults to `builtins.False`, meaning your bot will retain an + in-memory cache of the known gateway state. token : builtins.str The bot token to use. This should not start with a prefix such as `Bot `, but instead only contain the token itself. @@ -253,7 +252,7 @@ def __init__( rest_url: typing.Optional[str] = None, shard_ids: typing.Optional[typing.AbstractSet[int]] = None, shard_count: typing.Optional[int] = None, - stateless: bool = True, + stateless: bool = False, token: str, ) -> None: if undefined.count(shard_ids, shard_count) == 1: