@twurple/eventsub-base
Version:
Base for the other Twurple EventSub packages
29 lines • 878 B
TypeScript
import type { HelixUser } from '@twurple/api';
import { EventSubChannelBaseModerationEvent } from './EventSubChannelBaseModerationEvent.js';
/**
* An EventSub event representing a moderator banning a user on a channel.
*/
export declare class EventSubChannelBanModerationEvent extends EventSubChannelBaseModerationEvent {
readonly moderationAction: "ban";
/**
* The ID of the user being banned.
*/
get userId(): string;
/**
* The name of the user being banned.
*/
get userName(): string;
/**
* The display name of the user being banned.
*/
get userDisplayName(): string;
/**
* Gets more information about the user.
*/
getUser(): Promise<HelixUser | null>;
/**
* The reason given for the ban.
*/
get reason(): string;
}
//# sourceMappingURL=EventSubChannelBanModerationEvent.d.ts.map