Skip to content

Commit 16f6e5b

Browse files
committed
Fix bugs
* Bump dis-snek * Enable interaction sync * Fix serialisation error
1 parent 0dc2fe7 commit 16f6e5b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def on_command_error(self, source: str, error: Exception, *args, **kwargs)
7676
await self.on_error(source, error, *args, **kwargs)
7777

7878

79-
bot = BytehackzBot(default_prefix="!", debug_scope=GUILD)
79+
bot = BytehackzBot(default_prefix="!", debug_scope=GUILD, sync_interactions=True)
8080

8181
bot.storage = JsonStorage("data.json", "./backup", 20)
8282
scheduler = AsyncIOScheduler()

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
python-dotenv~=0.19.1
22
orjson~=3.6.4
33
numpy~=1.21.4
4-
dis-snek~=2.0.0
4+
dis-snek~=3.0.0
55
apscheduler~=3.8.1
66
attrs~=21.2.0

storage/object_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class MessageStore(DictSerializationMixin):
1212
channel_id: Optional[int] = attr.ib(default=None, converter=optional(to_snowflake))
1313
message_id: Optional[int] = attr.ib(default=None, converter=optional(to_snowflake))
1414

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

1717
def __bool__(self):
1818
return self._message is not None

0 commit comments

Comments
 (0)