Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Method Whisper #106

Open
LordRampantHump opened this issue Aug 7, 2019 · 4 comments
Open

Method Whisper #106

LordRampantHump opened this issue Aug 7, 2019 · 4 comments

Comments

@LordRampantHump
Copy link

How do you go about sending a whisper? The only method i can seem to use is msg
socket.call('msg', [@${data.user_name} Hello]);

I tried

socket.call('whisper', [@Testy1234t Hello]);
and
socket.call('{"type":"method","method":"whisper","arguments":["Testy1234t","test"]}');

@DeekyJay
Copy link
Contributor

DeekyJay commented Aug 8, 2019

The payload for sending a whisper is like this:

{"type":"method","method":"whisper","arguments":["Deeky","hello"],"id":2}

Make sure you have the right oauth scopes on your access token 👍

@LordRampantHump
Copy link
Author

it just returns invalid method

@Hagenheilm
Copy link

just replace sClientId with your oAuthToken to make it work, it will send a whisper to the user tiping !ping in your mixer chat https://repl.it/@KokosSverkos/whisperexample

@ProbablePrime
Copy link
Contributor

socket.call('whisper', [data.user_name, @${data.user_name} PONG!]);

Is the important line from the repl which Hagenheilm provided.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants