Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
* Bump dis-snek
* Enable interaction sync
* Fix serialisation error
  • Loading branch information
benwoo1110 committed Oct 21, 2022
1 parent 0dc2fe7 commit 16f6e5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def on_command_error(self, source: str, error: Exception, *args, **kwargs)
await self.on_error(source, error, *args, **kwargs)


bot = BytehackzBot(default_prefix="!", debug_scope=GUILD)
bot = BytehackzBot(default_prefix="!", debug_scope=GUILD, sync_interactions=True)

bot.storage = JsonStorage("data.json", "./backup", 20)
scheduler = AsyncIOScheduler()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python-dotenv~=0.19.1
orjson~=3.6.4
numpy~=1.21.4
dis-snek~=2.0.0
dis-snek~=3.0.0
apscheduler~=3.8.1
attrs~=21.2.0
2 changes: 1 addition & 1 deletion storage/object_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MessageStore(DictSerializationMixin):
channel_id: Optional[int] = attr.ib(default=None, converter=optional(to_snowflake))
message_id: Optional[int] = attr.ib(default=None, converter=optional(to_snowflake))

_message: Optional[Message] = attr.ib(default=None)
_message: Optional[Message] = attr.ib(default=None, metadata={"no_export": True})

def __bool__(self):
return self._message is not None
Expand Down

0 comments on commit 16f6e5b

Please sign in to comment.