internal static SocketMessage Create(DiscordSocketClient discord, ClientState state, SocketUser author, ISocketMessageChannel channel, Model model) { if (model.Type == MessageType.Default) { return(SocketUserMessage.Create(discord, state, author, channel, model)); } else { return(SocketSystemMessage.Create(discord, state, author, channel, model)); } }
internal static SocketMessage Create(DiscordSocketClient discord, ClientState state, SocketUser author, ISocketMessageChannel channel, Model model) { if (model.Type == MessageType.Default || model.Type == MessageType.Reply || model.Type == MessageType.ApplicationCommand || model.Type == MessageType.ThreadStarterMessage) { return(SocketUserMessage.Create(discord, state, author, channel, model)); } else { return(SocketSystemMessage.Create(discord, state, author, channel, model)); } }