node-groupme
node-groupme copied to clipboard
Send message
Polymorphic send
this is going to involve a lot of overload signatures and type checking.
Group#send(text: string): Promise<Message>
Group#send(options: GroupSendMessageOptions): Promise<Message>
Sends a message to a group.
Usage:
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