Add client.getMessage() (#428)

* Add client.getMessage

* Add shortcuts

* build it..

* Add missing ~ in note docs

* ............
This commit is contained in:
Manuel Kraus
2016-06-16 00:31:02 +02:00
committed by abal
parent 0f4566dd23
commit 0e4612d7ab
11 changed files with 212 additions and 67 deletions

View File

@@ -309,6 +309,17 @@ Gets a list of previously sent messages in a channel.
- **error** - error if any occurred
- **messages** - `array` of Message_ objects sent in channel
getMessage(channel, messageID, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Gets a message. This also works for messages that aren't cached but will only work for OAuth bot accounts.
- **channel** - The Channel_ to get the message from.
- **messageID** - The message id to get the message object from. A `String`
- **callback** - `function` taking the following:
- **error** - error if any occurred
- **message** - The `Message_`
getBans(server, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -823,14 +834,14 @@ Set the nickname of a user on a server.
- **error** - error if any occurred.
setNote(user, note, `callback`)
~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
Set the note of a user. This will only work for user accounts.
Set the note of a user. This will only work for user accounts.
- **user** - A `User Resolvable`_ to which the note is applied.
- **note** - `String`, content of the note, or `null` to clear.
- **callback** - `function` taking the following:
- **error** - error if any occurred.
- **user** - A `User Resolvable`_ to which the note is applied.
- **note** - `String`, content of the note, or `null` to clear.
- **callback** - `function` taking the following:
- **error** - error if any occurred.
Events
------