Skip to content

Commit 52a847a

Browse files
author
Nekokatt
authored
Merge pull request #91 from nekokatt/task/enable-state-default
Defaulted state to being enabled by default on BotApp.
2 parents 72cc204 + a5c28f8 commit 52a847a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

hikari/impl/bot.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ class BotApp(
161161
If `builtins.True`, the bot will not implement a cache, and will be
162162
considered stateless. If `builtins.False`, then a cache will be used.
163163
164-
While the cache components are a WIP, this will default to
165-
`builtins.True`. This should be expected to be changed to
166-
`builtins.False` before the first non-development release is made.
164+
This defaults to `builtins.False`, meaning your bot will retain an
165+
in-memory cache of the known gateway state.
167166
token : builtins.str
168167
The bot token to use. This should not start with a prefix such as
169168
`Bot `, but instead only contain the token itself.
@@ -255,7 +254,7 @@ def __init__(
255254
rest_url: typing.Optional[str] = None,
256255
shard_ids: typing.Optional[typing.AbstractSet[int]] = None,
257256
shard_count: typing.Optional[int] = None,
258-
stateless: bool = True,
257+
stateless: bool = False,
259258
token: str,
260259
) -> None:
261260
if undefined.count(shard_ids, shard_count) == 1:

0 commit comments

Comments
 (0)