Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 635 Bytes

Set Link Flair.md

File metadata and controls

35 lines (19 loc) · 635 Bytes

Set Link Flair

Author

Kris Craig

Required libraries

Overview

Creates a new link post and assigns a flair to it.

Library Installation

In the NuGet Package Manager console:

Install-Package Reddit

The Code

using Reddit;

...

var reddit = new RedditClient("YourRedditAppID", "YourBotUserRefreshToken");

reddit.Subreddit("MySub").LinkPost("Reddit.NET", "https://www.nuget.org/packages/Reddit").Submit().SetFlair("NuGet Package");

Source File

Set Link Flair.cs