Prediction & Poll #488
fedMiranda
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Is this a feature request? As far as I know, this is not possible through chat. Anything like that supported by the chat is intercepted and interpreted by the UI to make an API call on the user's behalf. Try calling the equivalent of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Predict
Start a Predict on a channel.
Parameters:
channel: String - Channel name (Required)
title: String - Message (Required)
result1: String- Result1 (Required)
result2: String- Result2 (Required)}
length: Integer - Time in seconds (required)
client.predict("channel", "title","result1","result2",time);
client.predict("channel", "title","result1","result2",time)
.then((data) => {
// data returns [channel]
}).catch((err) => {
//
});
completePredict
Complete a Predict on a channel.
Parameters:
channel: String - Channel name (Required)
title: String - Message (Required)
result: Integer - 1 or 2 (Required)
client.completePredict("channel","title","result");
client.completePredict("channel","title","result");
.then((data) => {
// data returns [channel]
}).catch((err) => {
//
});
Poll
Start a Poll on a channel.
Parameters:
channel: String - Channel name (Required)
title: String - Message (Required)
options: String Array - Array of options (Required)
length: Integer - Time in seconds (Required)
client.predict("channel", "title", options, time);
client.predict("channel", "title", options, time)
.then((data) => {
// data returns [channel]
}).catch((err) => {
//
});
Beta Was this translation helpful? Give feedback.
All reactions