Skip to content

Packet type has invalid methods defined. #7

Open

Description

@Tom-atoes

Packet type has method sendToList defined, but this method does not exist (should be sendToPlayers). It is also missing sendToAllExcept.

Corrected type:

type Packet<T> = {
	sendToAll: (data: T) -> (),
	sendTo: (data: T, target: Player) -> (),
	sendToPlayers: (data: T, targets: { Player }) -> (),
	sendToAllExcept: (data: T, except: Player) -> (),
	
	wait: () -> T,
	send: (data: T, target: Player?) -> (),
	listen: (callback: (data: T, player: Player?) -> ()) -> (),
}

Activity

  1. ffrostfall commented on Mar 8, 2024

    @ffrostfall
    Owner

    Solved in the next version

  2. Tom-atoes commented on Mar 8, 2024

    @Tom-atoes
    Author

    Still an issue as of 0.4.2 (worth noting I am downloading the rbxm, maybe that isn't updated)

  3. ffrostfall commented on Mar 11, 2024

    @ffrostfall
    Owner

    sendToAllExcept wasn't defined. Oops

  4. Tom-atoes commented on Mar 11, 2024

    @Tom-atoes
    Author

    Also sendToList should be sendToPlayers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions