Class StrangerMessageEvent

  • All Implemented Interfaces:
    Serializable

    public class StrangerMessageEvent
    extends MessageEvent
    Called when a stranger chat with bot (this does not execute any commands)
    See Also:
    Serialized Form
    • Constructor Detail

      • StrangerMessageEvent

        public StrangerMessageEvent​(Bot bot,
                                    net.mamoe.mirai.message.data.MessageChain message,
                                    net.mamoe.mirai.contact.Stranger stranger)
        Constructs a StrangerMessageEvent
        Parameters:
        bot - the bot
        message - the chat message
        stranger - the stranger who chats with bot
    • Method Detail

      • getStranger

        public net.mamoe.mirai.contact.Stranger getStranger()