Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.
This repository was archived by the owner on May 31, 2024. It is now read-only.

The event on_network_message don't fire #8

@ascpial

Description

@ascpial

I recently started to use this library to create a small video game using this librairie.
After the setup of lobby_manager.get_lobby_activity_secret and lobby_transaction.connect_network, I can send messages using lobby_manager.send_network_message, it seems to work, but I never get the message back.
Here is some parts of my code :
self.lobby_manager.connect_lobby_with_activity_secret(secret, self.on_lobby_joined_callback)

def on_lobby_joined_callback(self, result, lobby):
    if result == discordsdk.Result.ok:
        print("Lobby successfully connected")
        self.lobby:discordsdk.Lobby = lobby
        self.setup_lobby()
        self.update_activity()
    else:
        print(f"Error : {result}")
for i in range(self.lobby_manager.member_count(self.lobby.id)):
    user_id = self.lobby_manager.get_member_user_id(self.lobby.id, i)
    print(user_id, data)
    self.lobby_manager.send_network_message(
        self.lobby.id,
        user_id,
        channel_id,
        data
    )

Any ideas to fix it ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions