node-groupme icon indicating copy to clipboard operation
node-groupme copied to clipboard

Send message

Open not-so-smart opened this issue 3 years ago • 0 comments

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

not-so-smart avatar Aug 30 '21 19:08 not-so-smart