Sha256: 1d71a20ab6a5592e78a3b43e6d7f7857656095445eaf51f1ad91f5f636d506dc

Contents?: true

Size: 1.74 KB

Versions: 7

Compression:

Stored size: 1.74 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, 
  per_page: 1, 
  message_id: 1
)
```

### Parameters

* `user_id` (int64): User ID.  Provide a value of `0` to operate the current session's user.
* `cursor` (string): Used for pagination.  When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`.  Send one of those cursor value here to resume an existing list from the next available record.  Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
* `per_page` (int64): Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
* `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(id)

message_reaction.delete
```

### Parameters

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
files.com-1.1.93 docs/message_reaction.md
files.com-1.1.92 docs/message_reaction.md
files.com-1.1.91 docs/message_reaction.md
files.com-1.1.90 docs/message_reaction.md
files.com-1.1.89 docs/message_reaction.md
files.com-1.1.88 docs/message_reaction.md
files.com-1.1.87 docs/message_reaction.md