You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2024. It is now read-only.
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
)
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)Any ideas to fix it ?