Class FriendChatEvent

    • Constructor Detail

      • FriendChatEvent

        public FriendChatEvent​(Bot bot,
                               net.mamoe.mirai.contact.Friend friend,
                               net.mamoe.mirai.message.data.MessageChain message,
                               net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend source)
        Constructs a FriendChatEvent
        Parameters:
        bot - the bot
        friend - the friend who chats with bot
        message - the chat message
        source - the source of the message
    • Method Detail

      • getFriend

        public net.mamoe.mirai.contact.Friend getFriend()
      • getSource

        public net.mamoe.mirai.message.data.OnlineMessageSource.Incoming.FromFriend getSource()