GuildVotePremiumData: {
    inPreview: false;
} | {
    channelId: string | null;
    inPreview: true;
    month: {
        capHours: number;
        hoursEarned: number;
        votes: number;
    };
    panelPosted: boolean;
    premium: {
        plus: boolean;
        until: string;
    } | null;
    previewNote: string;
    roleHours: number;
    roleId: string | null;
    rule: {
        hoursPerVote: number | null;
        plusBarVotes: number | null;
        streakFrom: number | null;
    };
    variant: VotePremiumVariant;
}

Type declaration

  • channelId: string | null

    Null until the panel is set up.

  • inPreview: true
  • month: {
        capHours: number;
        hoursEarned: number;
        votes: number;
    }
    • capHours: number
    • hoursEarned: number
    • votes: number
  • panelPosted: boolean
  • premium: {
        plus: boolean;
        until: string;
    } | null

    The free Premium running now from votes, or null.

  • previewNote: string
  • roleHours: number

    How long the voter role lasts after a vote.

  • roleId: string | null
  • rule: {
        hoursPerVote: number | null;
        plusBarVotes: number | null;
        streakFrom: number | null;
    }
    • hoursPerVote: number | null

      Hours one vote adds right now (smaller servers earn more). 0 = too big to earn from votes; null = unknown.

    • plusBarVotes: number | null

      plus_bar: this many votes in 30 days turns the time into Premium Plus.

    • streakFrom: number | null

      streak: from this many votes in a row, each vote counts double.

  • variant: VotePremiumVariant