not-an-aardvark / snoowrap

A JavaScript wrapper for the reddit API
MIT License
1.02k stars 127 forks source link

Allow setting user's flair by template ID? #308

Closed OmgImAlexis closed 3 years ago

OmgImAlexis commented 3 years ago

Currently I'm needing to use this as I couldn't find any method to change the user's flair based on the flair_template_id.

await client._selectFlair({
    subredditName: 'mysubreddit',
    name: 'OmgImAlexis',
    flair_template_id: '3d7f8042-39be-11eb-910f-0eb386cc13ed'
})
Venefilyn commented 3 years ago

We do not have flair templates v2 fully implemented, you cannot set posts with their flair template id. We're tracking this under #255

If you wish to implement the link_flair_v2 go right ahead, otherwise you can make use of oauthRequest for your own code in the meantime

OmgImAlexis commented 3 years ago

We do not have flair templates v2 fully implemented, you cannot set posts with their flair template id. We're tracking this under #255

If you wish to implement the link_flair_v2 go right ahead, otherwise you can make use of oauthRequest for your own code in the meantime

Honestly not sure how I missed that part of the api docs. Thank you. 🙌