Sha256: bbcf1e08bb2c61236343c4d0f13e7e9a8a5e8a4dd131010164eaa1d615bbb9ee

Contents?: true

Size: 1.54 KB

Versions: 53

Compression:

Stored size: 1.54 KB

Contents

# MessageReaction

## Example MessageReaction Object

```
{
  "id": 1,
  "emoji": "👍"
}
```

* `id` (int64): Reaction ID
* `emoji` (string): Emoji used in the reaction.
* `user_id` (int64): User ID.  Provide a value of `0` to operate the current session's user.


---

## List Message Reactions

```
Files::MessageReaction.list(
  user_id: 1, 
  page: 1, 
  per_page: 1, 
  message_id: 1
)
```

### Parameters

* `user_id` (int64): User ID.  Provide a value of `0` to operate the current session's user.
* `page` (int64): Current page number.
* `per_page` (int64): Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
* `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
* `message_id` (int64): Required - Message to return reactions for.


---

## Show Message Reaction

```
Files::MessageReaction.find(id)
```

### Parameters

* `id` (int64): Required - Message Reaction ID.


---

## Create Message Reaction

```
Files::MessageReaction.create(
  user_id: 1, 
  emoji: "emoji"
)
```

### Parameters

* `user_id` (int64): User ID.  Provide a value of `0` to operate the current session's user.
* `emoji` (string): Required - Emoji to react with.


---

## Delete Message Reaction

```
Files::MessageReaction.delete(id)
```

### Parameters

* `id` (int64): Required - Message Reaction ID.


---

## Delete Message Reaction

```
message_reaction = Files::MessageReaction.find(1)
message_reaction.delete
```

### Parameters

* `id` (int64): Required - Message Reaction ID.

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
files.com-1.0.60 docs/message_reaction.md
files.com-1.0.59 docs/message_reaction.md
files.com-1.0.58 docs/message_reaction.md
files.com-1.0.57 docs/message_reaction.md
files.com-1.0.56 docs/message_reaction.md
files.com-1.0.55 docs/message_reaction.md
files.com-1.0.54 docs/message_reaction.md
files.com-1.0.53 docs/message_reaction.md
files.com-1.0.52 docs/message_reaction.md
files.com-1.0.51 docs/message_reaction.md
files.com-1.0.50 docs/message_reaction.md
files.com-1.0.49 docs/message_reaction.md
files.com-1.0.48 docs/message_reaction.md
files.com-1.0.47 docs/message_reaction.md
files.com-1.0.46 docs/message_reaction.md
files.com-1.0.45 docs/message_reaction.md
files.com-1.0.44 docs/message_reaction.md
files.com-1.0.43 docs/message_reaction.md
files.com-1.0.42 docs/message_reaction.md
files.com-1.0.41 docs/message_reaction.md