discord-jadx/app/src/main/java/com/discord/widgets/chat/input/autocomplete/sources/UserMentionableSourceKt.java

22 lines
797 B
Java

package com.discord.widgets.chat.input.autocomplete.sources;
import com.discord.api.channel.Channel;
/* compiled from: UserMentionableSource.kt */
public final class UserMentionableSourceKt {
public static final /* synthetic */ boolean access$isDmOrGroupDm(Channel channel) {
return isDmOrGroupDm(channel);
}
public static final /* synthetic */ boolean access$isTextOrVoiceChannel(Channel channel) {
return isTextOrVoiceChannel(channel);
}
private static final boolean isDmOrGroupDm(Channel channel) {
return channel.A() == 3 || channel.A() == 1;
}
private static final boolean isTextOrVoiceChannel(Channel channel) {
return channel.A() == 5 || channel.A() == 0 || channel.A() == 11 || channel.A() == 12 || channel.A() == 2;
}
}