Skip to content

Commit

Permalink
Merge pull request #91 from nekokatt/task/enable-state-default
Browse files Browse the repository at this point in the history
Defaulted state to being enabled by default on BotApp.
  • Loading branch information
Nekokatt authored Aug 27, 2020
2 parents 72cc204 + a5c28f8 commit 52a847a
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 @@ -161,9 +161,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 @@ -255,7 +254,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 52a847a

Please sign in to comment.