Function createFeatured

  • Creates a new featured object.

    Usage

    const featured: Omit<FeaturedVideo, 'date'> = {
    type: FeaturedType.VIDEO,
    memberId: "6547839284576",
    description: "Watch me die 7439578493e times in VVVVVV failed YOLO attempt",
    link: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    gameId: 70300,
    gameTitle: null,
    gameLink: null,
    };

    const {
    acknowledged,
    insertedId,
    } = await sdk.createFeatured({ featured });

    Parameters

    • params: {
          featured: Omit<Featured, "_id" | "date" | "isApproved" | "isVisible" | "isSticky">;
      }
      • featured: Omit<Featured, "_id" | "date" | "isApproved" | "isVisible" | "isSticky">

        Data of the new featured object.

    Returns Promise<InsertOneResult<Featured>>

Generated using TypeDoc