package com.discord.widgets.chat; import com.discord.api.message.allowedmentions.MessageAllowedMentions; import com.discord.models.user.MeUser; import com.discord.stores.StoreMessages; import com.discord.stores.StorePendingReplies; import com.discord.utilities.messagesend.MessageResult; import j0.k.b; import j0.l.e.j; import java.util.List; import rx.Observable; /* compiled from: MessageManager.kt */ public final class MessageManager$sendMessage$messageResultObservable$1 implements b> { public final /* synthetic */ MessageAllowedMentions $allowedMentions; public final /* synthetic */ List $attachments; public final /* synthetic */ String $content; public final /* synthetic */ MeUser $me; public final /* synthetic */ List $mentions; public final /* synthetic */ long $nonNullChannelId; public final /* synthetic */ StorePendingReplies.PendingReply $pendingReply; public final /* synthetic */ List $stickers; public final /* synthetic */ MessageManager this$0; public MessageManager$sendMessage$messageResultObservable$1(MessageManager messageManager, StorePendingReplies.PendingReply pendingReply, long j, MeUser meUser, String str, List list, List list2, List list3, MessageAllowedMentions messageAllowedMentions) { this.this$0 = messageManager; this.$pendingReply = pendingReply; this.$nonNullChannelId = j; this.$me = meUser; this.$content = str; this.$mentions = list; this.$attachments = list2; this.$stickers = list3; this.$allowedMentions = messageAllowedMentions; } public final Observable call(Integer num) { if (num.intValue() > 0) { return new j(new MessageResult.Slowmode(((long) num.intValue()) * 1000)); } if (this.$pendingReply != null) { MessageManager.access$getStorePendingReplies$p(this.this$0).onDeletePendingReply(this.$nonNullChannelId); } StoreMessages access$getStoreMessages$p = MessageManager.access$getStoreMessages$p(this.this$0); long j = this.$nonNullChannelId; MeUser meUser = this.$me; String str = this.$content; List list = this.$mentions; List list2 = this.$attachments; List list3 = this.$stickers; StorePendingReplies.PendingReply pendingReply = this.$pendingReply; return StoreMessages.sendMessage$default(access$getStoreMessages$p, j, meUser, str, list, list2, list3, pendingReply != null ? pendingReply.getMessageReference() : null, this.$allowedMentions, null, null, null, null, null, null, 16128, null); } }