From a5dae15fb9cb09c34f43aaa7c3686973404988b0 Mon Sep 17 00:00:00 2001 From: $xTM Date: Tue, 23 Mar 2021 16:17:11 +0300 Subject: [PATCH] Fix rb to 'RB' rb needed to be changed to 'rb' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70dbaf8..e15f3fa 100644 --- a/README.md +++ b/README.md @@ -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)