Skip to content

Commit

Permalink
Fix rb to 'RB'
Browse files Browse the repository at this point in the history
rb needed to be changed to 'rb'
  • Loading branch information
xpierroz authored Mar 23, 2021
1 parent 20a79f4 commit a5dae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ The following attributes will be populated with data from discord:
You can change the default name and avatar of a webhook easily.

```python
with open('img.png', rb) as f:
with open('img.png', 'rb') as f:
img = f.read() # bytes

hook.modify(name='Bob', avatar=img)
Expand Down

0 comments on commit a5dae15

Please sign in to comment.