Skip to content

Commit

Permalink
Defaulted state to being enabled by default on BotApp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekokatt committed Aug 27, 2020
1 parent 65e06a0 commit a5c28f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hikari/impl/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a5c28f8

Please sign in to comment.