Skip to content

Commit

Permalink
publish v1
Browse files Browse the repository at this point in the history
  • Loading branch information
javoeria committed Jun 19, 2020
1 parent 47ceee7 commit df1680a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0

* Publish stable version.

## 0.0.1

* Initial release.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ If you don't have it, follow the instructions [here](https://api.slack.com/messa
The `SlackNotifier` class has only one method, with optional parameters to customize your messages.

```dart
Future<String> send(String text,
{String channel, String iconEmoji, String iconUrl, String username, List<Attachment> attachments});
Future<String> send(
String text, {
String channel, // Channel, private group, or IM channel name to send message to.
String iconEmoji, // Emoji to use as the icon for this message.
String iconUrl, // URL to an image to use as the icon for this message.
String username, // Set your bot's user name.
List<Attachment> attachments, // Attachment list that can be added as secondary content.
});
```

- `channel`: Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
- `iconEmoji`: Emoji to use as the icon for this message.
- `iconUrl`: URL to an image to use as the icon for this message.
- `username`: Set your bot's user name.
- `attachments`: Attachment model list that can be added as secondary content.

## Result

The message will look like this:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: slack_notifier
description: A simple wrapper to post messages from external sources into Slack.
version: 0.0.1
version: 1.0.0
homepage: https://github.com/javoeria/slack-dart

environment:
Expand Down

0 comments on commit df1680a

Please sign in to comment.