24 lines
1 KiB
Java
24 lines
1 KiB
Java
|
package com.discord.utilities.guilds;
|
||
|
|
||
|
import com.discord.api.message.MessageReference;
|
||
|
import com.discord.api.user.User;
|
||
|
import com.discord.models.message.Message;
|
||
|
import d0.z.d.m;
|
||
|
/* compiled from: PublicGuildUtils.kt */
|
||
|
public final class PublicGuildUtils {
|
||
|
public static final PublicGuildUtils INSTANCE = new PublicGuildUtils();
|
||
|
private static final long PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID = 667560445975986187L;
|
||
|
private static final long PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID = 669627189624307712L;
|
||
|
|
||
|
private PublicGuildUtils() {
|
||
|
}
|
||
|
|
||
|
public final boolean isPublicGuildSystemMessage(Message message) {
|
||
|
User author;
|
||
|
m.checkNotNullParameter(message, "message");
|
||
|
MessageReference messageReference = message.getMessageReference();
|
||
|
Long b = messageReference != null ? messageReference.b() : null;
|
||
|
return (b != null && b.longValue() == PUBLIC_GUILD_ANNOUNCEMENTS_GUILD_ID) || ((author = message.getAuthor()) != null && author.i() == PUBLIC_GUILD_UPDATES_WEBHOOK_USER_ID);
|
||
|
}
|
||
|
}
|