Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.egg.papertrail</groupId>
<artifactId>paper-trail-bot</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
<name>PaperTrail</name>
<description>A simple bot for logging all user actions</description>
<properties>
Expand All @@ -16,7 +16,7 @@
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.6.1</version>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>org.tinylog</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void auditLogParser(GuildAuditLogEntryCreateEvent event, AuditLogEntry a
case MEMBER_VOICE_KICK -> formatMemberVoiceKick(event, ale, channelIdToSendTo);
case MEMBER_VOICE_MOVE -> formatMemberVoiceMove(event, ale, channelIdToSendTo);

// this seemingly don't trigger properly, or are unreliable
// these seemingly don't trigger properly, or are unreliable
case MESSAGE_BULK_DELETE -> formatGeneric(event, ale, channelIdToSendTo);
case MESSAGE_CREATE -> formatGeneric(event, ale, channelIdToSendTo);
case MESSAGE_DELETE -> formatGeneric(event, ale, channelIdToSendTo);
Expand Down Expand Up @@ -1980,7 +1980,7 @@ private void formatMessagePin(GuildAuditLogEntryCreateEvent event, AuditLogEntry

eb.addField("Action Type", String.valueOf(ale.getType()), true);
eb.addField("Target Type", String.valueOf(ale.getTargetType()), true);

eb.setFooter("Audit Log Entry ID: "+ale.getId());
eb.setTimestamp(ale.getTimeCreated());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import java.util.Map;

/**
@see <a href="https://discord.com/developers/docs/topics/permissions">Discord Permissions</a>
*/
public class PermissionResolver {

private static final Map<Long, String> PERMISSION_MAP = Map.ofEntries(
Expand Down Expand Up @@ -30,7 +33,7 @@ public class PermissionResolver {
Map.entry(1L << 22, "MUTE_MEMBERS"),
Map.entry(1L << 23, "DEAFEN_MEMBERS"),
Map.entry(1L << 24, "MOVE_MEMBERS"),
Map.entry(1L << 25, "USE_VOICE_ACTIVITY_DETECTION"),
Map.entry(1L << 25, "USE_VAD"),
Map.entry(1L << 26, "CHANGE_NICKNAME"),
Map.entry(1L << 27, "MANAGE_NICKNAMES"),
Map.entry(1L << 28, "MANAGE_ROLES"),
Expand All @@ -54,7 +57,8 @@ public class PermissionResolver {
Map.entry(1L << 46, "SEND_VOICE_MESSAGES"),

Map.entry(1L << 49, "SEND_POLLS"),
Map.entry(1L << 50, "USE_EXTERNAL_APPS")
Map.entry(1L << 50, "USE_EXTERNAL_APPS"),
Map.entry(1L << 51, "PIN_MESSAGES")
);

private PermissionResolver() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/papertrail/version/AuthorInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ private AuthorInfo() {
}

public static final String AUTHOR_NAME="Egg-03";
public static final String AUTHOR_LINK = "https://github.com/Egg-03";
public static final String AUTHOR_AVATAR_URL="https://avatars.githubusercontent.com/Egg-03";
public static final String AUTHOR_LINK = "https://github.com/eggy03";
public static final String AUTHOR_AVATAR_URL="https://avatars.githubusercontent.com/eggy03";
}
6 changes: 3 additions & 3 deletions src/main/java/org/papertrail/version/ProjectInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ private ProjectInfo() {
}

public static final String APPNAME = "PaperTrail";
public static final String VERSION = "v2.0.0";
public static final String PROJECT_LINK = "https://github.com/Egg-03/PaperTrailBot";
public static final String PROJECT_ISSUE_LINK="https://github.com/Egg-03/PaperTrailBot/issues";
public static final String VERSION = "v2.0.1";
public static final String PROJECT_LINK = "https://github.com/eggy03/PaperTrailBot";
public static final String PROJECT_ISSUE_LINK="https://github.com/eggy03/PaperTrailBot/issues";

public static final String PRIVACY = "https://github.com/Egg-03/PaperTrailBot/blob/main/PRIVACY.md";
public static final String TERMS = "https://github.com/Egg-03/PaperTrailBot/blob/main/TERMS.md";
Expand Down
Loading