# friendship_offer

Fires when the bot receives a friendship offer.

```javascript
Bot.on("friendship_offer", function(event) { ... });
```

```snippet playground-event-reference-g2mvxMrKkd
avatar_name | The name of the sender
avatar_uuid | The UUID of the sender
message     | The text message sent along with the offer
session_id  | The session UUID to accept the offer
```

See also: Use [acceptFriendshipOffer](/doc/82bdfc11-5561-4cc1-8c97-b8fea069a8f7) to accept an offer.

## Example

```javascript
Bot.on("friendship_offer", function(event) {
  console.log(`${event.avatar_name} offers friendship and says: ${event.message}`);
});

console.log("Bot is listening to friendship offers");
```