Skip to content

Commit

Permalink
docs: reply refactory
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Mar 29, 2021
1 parent b62f2af commit 549e9e2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,16 +465,12 @@ await client.sendMentioned(
await client.reply(
'[email protected]',
'This is a reply!',
message.id.toString()
);

// Reply to a message with mention
await client.reply(
'[email protected]',
'Hello @5218113130740 and @5218243160777! This is a reply with mention!',
message.id.toString(),
['5218113130740', '5218243160777']
);
'[email protected]_7C22WHCB6DKYHJKQIEN9'
).then((result) => {
console.log('Result: ', result); //return object success
}).catch((erro) => {
console.error('Error when sending: ', erro); //return object error
});

// Send message with options
await client.
Expand Down

0 comments on commit 549e9e2

Please sign in to comment.