Twurple
Authentication
Getting data
Examples
FAQ
Migration
Reference
api
api-call
auth
auth-tmi
chat
common
easy-bot
ebs-helper
eventsub-base
eventsub-http
eventsub-ws
pubsub
Classes
ChatClient
ChatMessage
ChatUser
Functions
buildEmoteImageUrl
extractMessageText
fillTextPositions
findCheermotePositions
parseChatMessage
parseEmoteOffsets
parseEmotePositions
parseTwitchMessage
toChannelName
toUserName
Interfaces
ChatAnnouncementInfo
ChatBitsBadgeUpgradeInfo
ChatClientOptions
ChatCommunityPayForwardInfo
ChatCommunitySubInfo
ChatPrimeCommunityGiftInfo
ChatRaidInfo
ChatRewardGiftInfo
ChatRitualInfo
ChatSayMessageAttributes
ChatStandardPayForwardInfo
ChatSubExtendInfo
ChatSubGiftInfo
ChatSubGiftUpgradeInfo
ChatSubInfo
ChatSubOriginalGiftInfo
ChatSubUpgradeInfo
ClearChat
ClearMsg
EmoteSettings
ParsedMessageCheerPart
ParsedMessageEmotePart
ParsedMessageTextPart
RoomState
UserNotice
Type aliases
EmoteAnimationSettings
EmoteBackgroundType
EmoteSize
ParsedMessagePart
TwitchBotLevel
toUserName
Definition
toUserName(channel)
Converts a chat-compatible channel name to an API-compatible username.
Parameter
Type
Required
Default
Description
channel
string
none
The name of the channel.
Return type:
string