Skip to content

Commit

Permalink
Merge pull request #47 from ICExFS/patch-1
Browse files Browse the repository at this point in the history
Fix rb to 'RB'
  • Loading branch information
Taaku18 authored Jun 18, 2021
2 parents 20a79f4 + a5dae15 commit cdd5f3f
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 cdd5f3f

Please sign in to comment.