Skip to main content

Send Private Message

Description

Sends a private message to a user via IRC.

danger

Twitch decommissioned chat commands over IRC on February 24, 2023 for third-parties. Please migrate to TwitchHelix#sendWhisper.

Example

twitchClient.getChat().sendPrivateMessage("twitch4j", "Hey! This is a direct message.");