Commit 35cfb54
committed
Use
Previously, `on_message` used `Attachment.content_type.startswith("text")` for this, but this is false for some text-based files (like json)."charset" in Attachment.content_type to determine that it's text-based.1 parent ceffc88 commit 35cfb54
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments