groupme-js / groupme-js/node-groupme

Send message

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
27
Forks
11
PR merge metrics
No merged PRs in 30d

Description

# Polymorphic send
this is going to involve a lot of overload signatures and type checking.

`Group#send(text: string): Promise`
`Group#send(options: GroupSendMessageOptions): Promise`

Sends a message to a group.

Usage:
```js
const group = client.groups.cache.get('12345')

group.send('hi guys')
group.send({
text: "here's a picture of my dog",
image: "https://i.imgur.com/NPUoRh5.png"
})
```

come up with more overloads later, like sending a message with only an image or a user resolvable or something like that

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.