Search Results for

    Show / Hide Table of Contents

    Class MessageEvent

    Inheritance
    System.Object
    CQEvent
    MessageEvent
    DiscussMessageEvent
    GroupMessageEvent
    PrivateMessageEvent
    Inherited Members
    CQEvent.time
    CQEvent.post_type
    CQEvent.postType
    Namespace: cqhttp.Cyan.Events.CQEvents.Base
    Assembly: cqhttp.Cyan.dll
    Syntax
    public abstract class MessageEvent : CQEvent

    Properties

    | Improve this Doc View Source

    font

    字体

    Declaration
    public int font { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    message

    Declaration
    public Message message { get; set; }
    Property Value
    Type Description
    Message
    | Improve this Doc View Source

    message_id

    Declaration
    public int message_id { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    messageType

    Declaration
    public MessageType messageType { get; set; }
    Property Value
    Type Description
    MessageType
    | Improve this Doc View Source

    sender

    消息发送者

    Declaration
    public MessageEvent.Sender sender { get; set; }
    Property Value
    Type Description
    MessageEvent.Sender

    Methods

    | Improve this Doc View Source

    GetEndpoint()

    获取消息的发送位置

    Declaration
    public (MessageType, long) GetEndpoint()
    Returns
    Type Description
    System.ValueTuple<MessageType, System.Int64>

    返回一个Tuple,Item1代表对话种类(群聊/私聊/讨论组),Item2代表号码(群号/QQ号/讨论组号)

    • Improve this Doc
    • View Source
    ☀
    ☾