From e6c8702a9e5df5e86de38fc48bb666fe9fd5d88d Mon Sep 17 00:00:00 2001 From: osyrisrblx Date: Thu, 30 Nov 2023 00:43:51 -0500 Subject: [PATCH] RemoteEvent -> UnreliableRemoteEvent --- include/customDefinitions.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/customDefinitions.d.ts b/include/customDefinitions.d.ts index 687c82947..5270276ad 100644 --- a/include/customDefinitions.d.ts +++ b/include/customDefinitions.d.ts @@ -783,7 +783,7 @@ interface UnreliableRemoteEvent extends BaseRemot readonly OnClientEvent: RBXScriptSignal; /** The reason we DON'T allow you to use `Parameters` here is because you can't trust data from the client. Please type-check and sanity-check all values received from the client. E.g. if you are expecting a number from the client, you should check whether the received value is indeed a number and you might also want to make sure it isn't a `NaN` value. See example code: * ```ts - * (new Instance("RemoteEvent") as RemoteEvent<(num: number) => void>).OnServerEvent.Connect((plr, num) => { + * (new Instance("UnreliableRemoteEvent") as UnreliableRemoteEvent<(num: number) => void>).OnServerEvent.Connect((plr, num) => { * if (typeIs(num, "number") && num === num) { * print(`Yay! Valid number: ${num}`); * } else { @@ -793,9 +793,9 @@ interface UnreliableRemoteEvent extends BaseRemot * ``` */ readonly OnServerEvent: RBXScriptSignal<(player: Player, ...args: Array) => void>; - FireAllClients(this: RemoteEvent, ...args: Parameters): void; - FireClient(this: RemoteEvent, player: Player, ...args: Parameters): void; - FireServer(this: RemoteEvent, ...args: Parameters): void; + FireAllClients(this: UnreliableRemoteEvent, ...args: Parameters): void; + FireClient(this: UnreliableRemoteEvent, player: Player, ...args: Parameters): void; + FireServer(this: UnreliableRemoteEvent, ...args: Parameters): void; } interface RemoteFunction extends Instance {