api.network.network_commands
PingCommand Objects
@Message.define("command/general/ping")
class PingCommand(Command)
A generic PING command.
Notes:
Requires a PingReply reply.
build
@staticmethod
def build(message_builder: MessageBuilder,
*,
chain: Message | None = None) -> CommandComposer
Helper function to easily build this message.
PingReply Objects
@Message.define("command/general/ping/reply")
class PingReply(CommandReply)
Reply to PingCommand.
build
@staticmethod
def build(message_builder: MessageBuilder,
cmd: PingCommand,
*,
success: bool = True,
message: str = "") -> CommandReplyComposer
Helper function to easily build this message.