UNPKG

@twurple/eventsub-base

Version:

Base for the other Twurple EventSub packages

54 lines 2.04 kB
import { type HelixUser } from '@twurple/api'; import { EventSubChannelChatBaseNotificationEvent } from './EventSubChannelChatBaseNotificationEvent.js'; import { type EventSubChannelChatNotificationSubTier } from './EventSubChannelChatNotificationEvent.external.js'; /** * An EventSub event representing a resub notification in another channel's chat during a shared chat session. */ export declare class EventSubChannelChatSharedChatResubNotificationEvent extends EventSubChannelChatBaseNotificationEvent { readonly type: "shared_chat_resub"; /** * The tier of the subscription. */ get tier(): EventSubChannelChatNotificationSubTier; /** * Whether the subscription was "paid" for using Prime Gaming. */ get isPrime(): boolean; /** * The number of months the subscription is for. */ get durationMonths(): number; /** * The total number of months the user has subscribed for. */ get cumulativeMonths(): number; /** * The streak amount of months the user has been subscribed for, or `null` if not shared. */ get streakMonths(): number | null; /** * Whether the resub was gifted by another user. */ get isGift(): boolean; /** * Whether the gifter is anonymous, or `null` if this is not a gift. */ get isGifterAnonymous(): boolean | null; /** * The ID of the gifter, or `null` if they're anonymous or this is not a gift. */ get gifterId(): string | null; /** * The username of the gifter, or `null` if they're anonymous or this is not a gift. */ get gifterName(): string | null; /** * The display name of the gifter, or `null` if they're anonymous or this is not a gift. */ get gifterDisplayName(): string | null; /** * Gets more information about the gifter, or `null` if they're anonymous or this is not a gift. */ getGifter(): Promise<HelixUser | null>; } //# sourceMappingURL=EventSubChannelChatSharedChatResubNotificationEvent.d.ts.map