Skip to content

Commit a5997f3

Browse files
committed
updating README with SlackAttachment methods
1 parent f732c39 commit a5997f3

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,8 @@ new SlackMessage("Some text can be")
4242
.italic("Italic")
4343
.text(". :)")
4444
```
45-
With `SlackAttachment` you can create much more sophisticated rich text as specified in https://api.slack.com/docs/attachments. Example usage
46-
```java
47-
new SlackAttachment()
48-
.author("ashwanthkumar")
49-
.author("ashwanthkumar", "https://avatars0.githubusercontent.com/u/600279?v=3&s=40")
50-
```
5145

52-
Available methods
46+
Available methods on `SlackMessage`
5347
- `text`
5448
- `link`
5549
- `bold`
@@ -58,6 +52,22 @@ Available methods
5852
- `preformatted`
5953
- `quote`
6054

55+
With `SlackAttachment` you can create much more sophisticated rich text as specified in https://api.slack.com/docs/attachments. Example usage
56+
```java
57+
new SlackAttachment()
58+
.author("ashwanthkumar")
59+
.author("ashwanthkumar", "https://avatars0.githubusercontent.com/u/600279?v=3&s=40")
60+
```
61+
62+
Available methods on `SlackAttachment`
63+
- `fallback`
64+
- `color`
65+
- `preText`
66+
- `author`
67+
- `title`
68+
- `text`
69+
- `addField`
70+
6171
## License
6272

6373
http://www.apache.org/licenses/LICENSE-2.0

0 commit comments

Comments
 (0)