class QueuedMessage
- QueuedMessage
- Reference
- Object
Defined in:
privateparlor/queue/queued_message.crConstructors
-
.new(origin_msid : Int64 | Array(Int64) | Nil, sender : Int64 | Nil, receiver : Int64, reply_to : Int64 | Nil, function : MessageProc)
Creates an instance of
QueuedMessage
.
Instance Method Summary
- #function : MessageProc
- #origin_msid : Int64 | Array(Int64) | Nil
- #receiver : Int64
- #reply_to : Int64 | Nil
- #sender : Int64 | Nil
Constructor Detail
def self.new(origin_msid : Int64 | Array(Int64) | Nil, sender : Int64 | Nil, receiver : Int64, reply_to : Int64 | Nil, function : MessageProc)
#
Creates an instance of QueuedMessage
.
Arguments:
hash
: a hashcode that refers to the associated MessageGroup
stored in the message history.
#sender
: the ID of the user who sent this message.
receiver_id
: the ID of the user who will receive this message.
reply_msid
: the MSID of a message to reply to. May be nil
if this message isn't a reply.
#function
: a proc that points to a Tourmaline CoreMethod send function and takes a user ID and MSID as its arguments