How do i use MultiplayerAPI SendBytes in c#?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By slopingfool

I am trying to use sendbytes (GetTree().SendBytes()) but i cannot seem to be able to find the function as i keep getting the error 'does not contain a definition for ‘SendBytes’…

It is listed in the multiplayerAPI https://godotsharp.net/api/master/Godot.MultiplayerAPI/

so i am wondering if i’m using it wrong or if its not implemented into the c# verson of godot.

fyi I was original trying to send a struct over rpc.

public struct InputStruct
{  
	public bool left;
	public bool right;
	public bool up;
	public bool down;
	public bool shift;
	public bool control;
}