Cloudy API Documentation
  • SETUP
    • Introduction
    • Setting Up Your Project
    • Update Log
    • Cloudy API Tutorial
    • Credits
  • FUNCTIONS
    • AutoInject
    • Inject
    • Execute
    • GetClientsList
    • RegisterExecutor
    • IsInjected
    • AutoSetup
    • disableSecurity
    • isRobloxOpen
    • CheckRobloxVersion
    • GetUsername
    • killRoblox
    • AskAi
    • Cleanres
    • SetDiscordRpc
    • IsAutoInjectEnabled
  • credits
  • GetUserIdFromUsername
  • GetAvatar
  • SetScriptJS
  • AddTabJS
  • GetDiscordUsername
  • cPlaceId
  • cPlaceName
  • cPlaceImage
  • CHAT FUNCTIONS
    • ConnectToServer
    • ReceiveMessages
    • SendMessage
    • Disconnect
    • OnMessageReceived
    • OnError
    • Messages
Powered by GitBook
On this page
  1. CHAT FUNCTIONS

OnError

Event triggered when an error occurs, such as a failure to connect or send a message.

This feature is deprecated and will be unsupported.

Example:

ChatClient.OnError += (errorMessage) =>
{
    Console.WriteLine($"An error occurred: {errorMessage}");
};
PreviousOnMessageReceivedNextMessages

Last updated 1 month ago