Rename to use source (and fix typo)
This commit is contained in:
parent
93ebbc65e1
commit
e0c8583b2d
@ -99,8 +99,8 @@ accepts a `message` argument.
|
|||||||
Attributes:
|
Attributes:
|
||||||
|
|
||||||
- **body**: the body of the message
|
- **body**: the body of the message
|
||||||
- **sender**: the sender of the message
|
- **source**: where the message came from (can be a user or a room)
|
||||||
- **receive**: the receive of the message
|
- **receiver**: the receiver of the message
|
||||||
- **nickname**: the nickname of the sender
|
- **nickname**: the nickname of the sender
|
||||||
- **type**: the type of message (`chat` or `groupchat`)
|
- **type**: the type of message (`chat` or `groupchat`)
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class SimpleMessage:
|
|||||||
return self.message["body"]
|
return self.message["body"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def sender(self):
|
def source(self):
|
||||||
return self.message["from"].bare
|
return self.message["from"].bare
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user