Skip Menu |

This queue is for tickets about the Reddit-Client CPAN distribution.

Report information
The Basics
Id: 103326
Status: resolved
Priority: 0/
Queue: Reddit-Client

People
Owner: JEFFOBER [...] cpan.org
Requestors: coderman9 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Error in documentation for Reddit::Client
Date: Sun, 5 Apr 2015 17:00:48 -0700
To: bug-Reddit-Client [...] rt.cpan.org
From: Ben Anker <coderman9 [...] gmail.com>
Hey, In the docs for Reddit::Client it says that is vote function is as such: vote(item_id => ..., direction => ...) Votes for "item_id". "direction" is one of "VOTE_UP", "VOTE_DOWN", or "VOTE_NONE" The actual way to make the function work is like this vote($item_id, Reddit::Client::VOTE_UP) (or whichever direction desired). Cheers, Ben
On Sun Apr 05 20:00:57 2015, coderman9@gmail.com wrote: Show quoted text
> Hey, > In the docs for Reddit::Client it says that is vote function is as such: > vote(item_id => ..., direction => ...) > Votes for "item_id". "direction" is one of "VOTE_UP", "VOTE_DOWN", or > "VOTE_NONE" > The actual way to make the function work is like this > vote($item_id, Reddit::Client::VOTE_UP) > (or whichever direction desired). > Cheers, > Ben
I've added a comment under the CONSTANTS header that the constants are not exported. It will go out with the next release. -- -Jeff Ober