We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bec182 + ebb4d23 commit 5e5c130Copy full SHA for 5e5c130
CHANGELOG.md
@@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
9
### Deprecated
10
### Removed
11
### Fixed
12
+- Return correct message type.
13
### Security
14
15
## [0.55.0] - 2018-12-20
src/Entities/Message.php
@@ -313,7 +313,7 @@ public function getType()
313
314
$is_command = strlen($this->getCommand()) > 0;
315
foreach ($types as $type) {
316
- if ($this->getProperty($type)) {
+ if ($this->getProperty($type) !== null) {
317
if ($is_command && $type === 'text') {
318
return 'command';
319
}
0 commit comments