Constructors

Methods

  • Parameters

    • __namedParameters: {
          auth: string;
          body: {
              allowBotMessages: null | boolean;
              allowNsfw: null | boolean;
              allowSelfStar: null | boolean;
              channelId: string;
              deleteIfLost: null | boolean;
              emojiId: null | string;
              emojiName: null | string;
              enabled: null | boolean;
              filter: null | {
                  channelMode: null | "whitelist" | "blacklist";
                  channels: string[];
                  roleMode: null | "whitelist" | "blacklist";
                  roles: string[];
              };
              guildId: string;
              openThreadOnStar: null | boolean;
              rewardRole: null | string;
              threshold: null | number;
          };
          guildId: string;
      }
      • auth: string
      • body: {
            allowBotMessages: null | boolean;
            allowNsfw: null | boolean;
            allowSelfStar: null | boolean;
            channelId: string;
            deleteIfLost: null | boolean;
            emojiId: null | string;
            emojiName: null | string;
            enabled: null | boolean;
            filter: null | {
                channelMode: null | "whitelist" | "blacklist";
                channels: string[];
                roleMode: null | "whitelist" | "blacklist";
                roles: string[];
            };
            guildId: string;
            openThreadOnStar: null | boolean;
            rewardRole: null | string;
            threshold: null | number;
        }
        • allowBotMessages: null | boolean
        • allowNsfw: null | boolean
        • allowSelfStar: null | boolean
        • channelId: string
        • deleteIfLost: null | boolean
        • emojiId: null | string
        • emojiName: null | string
        • enabled: null | boolean
        • filter: null | {
              channelMode: null | "whitelist" | "blacklist";
              channels: string[];
              roleMode: null | "whitelist" | "blacklist";
              roles: string[];
          }
        • guildId: string
        • openThreadOnStar: null | boolean
        • rewardRole: null | string
        • threshold: null | number
      • guildId: string

    Returns Promise<WebResponse<string>>

  • Parameters

    • __namedParameters: {
          auth: string;
          channelId: string;
          guildId: string;
      }
      • auth: string
      • channelId: string
      • guildId: string

    Returns Promise<WebResponse<string>>

  • Parameters

    • __namedParameters: {
          auth: string;
          guildId: string;
      }
      • auth: string
      • guildId: string

    Returns Promise<WebResponse<({
        filter: null | {
            channelMode: null | FilterEnum;
            channels: string[];
            dbId: string;
            guildStarboardId: string;
            roleMode: null | FilterEnum;
            roles: string[];
        };
    } & {
        allowBotMessages: null | boolean;
        allowNsfw: null | boolean;
        allowSelfStar: null | boolean;
        channelId: string;
        dbId: string;
        deleteIfLost: null | boolean;
        emojiId: null | string;
        emojiName: null | string;
        enabled: null | boolean;
        guildId: string;
        openThreadOnStar: null | boolean;
        rewardRole: null | string;
        threshold: null | number;
    })[]>>

  • Parameters

    • __namedParameters: {
          auth: string;
          body: {
              allowBotMessages?: null | boolean;
              allowNsfw?: null | boolean;
              allowSelfStar?: null | boolean;
              channelId?: string;
              deleteIfLost?: null | boolean;
              emojiId?: null | string;
              emojiName?: null | string;
              enabled?: null | boolean;
              filter?: null | {
                  channelMode?: null | "whitelist" | "blacklist";
                  channels?: string[];
                  roleMode?: null | "whitelist" | "blacklist";
                  roles?: string[];
              };
              guildId?: string;
              openThreadOnStar?: null | boolean;
              rewardRole?: null | string;
              threshold?: null | number;
          };
          channelId: string;
          guildId: string;
      }
      • auth: string
      • body: {
            allowBotMessages?: null | boolean;
            allowNsfw?: null | boolean;
            allowSelfStar?: null | boolean;
            channelId?: string;
            deleteIfLost?: null | boolean;
            emojiId?: null | string;
            emojiName?: null | string;
            enabled?: null | boolean;
            filter?: null | {
                channelMode?: null | "whitelist" | "blacklist";
                channels?: string[];
                roleMode?: null | "whitelist" | "blacklist";
                roles?: string[];
            };
            guildId?: string;
            openThreadOnStar?: null | boolean;
            rewardRole?: null | string;
            threshold?: null | number;
        }
        • OptionalallowBotMessages?: null | boolean
        • OptionalallowNsfw?: null | boolean
        • OptionalallowSelfStar?: null | boolean
        • OptionalchannelId?: string
        • OptionaldeleteIfLost?: null | boolean
        • OptionalemojiId?: null | string
        • OptionalemojiName?: null | string
        • Optionalenabled?: null | boolean
        • Optionalfilter?: null | {
              channelMode?: null | "whitelist" | "blacklist";
              channels?: string[];
              roleMode?: null | "whitelist" | "blacklist";
              roles?: string[];
          }
        • OptionalguildId?: string
        • OptionalopenThreadOnStar?: null | boolean
        • OptionalrewardRole?: null | string
        • Optionalthreshold?: null | number
      • channelId: string
      • guildId: string

    Returns Promise<WebResponse<string>>