Vote for Premium - a PREVIEW (only some servers have it, and it may change or end). Members click "Vote for this server" on a panel Noti posts, vote for Noti, and the server earns free Premium time; each voter can get a role for roleHours. The dashboard is the only place to set it up - there is no slash command.

getGuildVotePremium answers 200 for every server: inPreview: false means hide the page (no error to show). Show previewNote on the page.

Constructors

Methods

  • Set the panel's channel and voter role, then post the panel (or move it - a new channel gets a new message, the old one is left for the owner to delete). roleId: null = no voter role. Returns the same shape as the GET.

    Errors by error.code (localize by code; message is an English fallback):

    • 400 invalid_body, channel_missing, channel_permissions (Noti needs View Channel, Send Messages, Embed Links), role_missing, role_not_allowed (managed, above Noti, or more than basic chat / voice permissions), user_cannot_give_role (the caller needs Manage Roles and a higher role, unless they own the server)
    • 403 not_in_preview
    • 502 panel_failed (Discord refused the post; message says why)

    Parameters

    • __namedParameters: {
          auth: string;
          channelId: string;
          guildId: string;
          roleId?: null | string;
      }
      • auth: string
      • channelId: string
      • guildId: string
      • OptionalroleId?: null | string

    Returns Promise<WebResponse<GuildVotePremiumData>>