fix channel rename log
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 45s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 45s
This commit is contained in:
parent
407ee6f1e9
commit
dc04a2f36a
@ -96,11 +96,14 @@ public class ChannelListener implements EventListener {
|
|||||||
ChannelUnion channel = event.getChannel();
|
ChannelUnion channel = event.getChannel();
|
||||||
String type = formatChannelType(channel);
|
String type = formatChannelType(channel);
|
||||||
log.info("{} \"{}\" name was updated to {} in guild \"{}\"", type, event.getNewValue(), event.getOldValue(), guild.getName());
|
log.info("{} \"{}\" name was updated to {} in guild \"{}\"", type, event.getNewValue(), event.getOldValue(), guild.getName());
|
||||||
|
EmbedDescriptionBuilder description = new EmbedDescriptionBuilder("%s Name Updated".formatted(type));
|
||||||
|
if (channel.getType() == ChannelType.TEXT || channel.getType() == ChannelType.VOICE) {
|
||||||
|
description.appendLine("Channel: %s".formatted(event.getChannel().getAsMention()), true);
|
||||||
|
}
|
||||||
|
description.appendLine("Old Name: `%s`".formatted(event.getOldValue()), true);
|
||||||
|
description.appendLine("New Name: `%s`".formatted(event.getNewValue()), true);
|
||||||
logFeature.sendLog(guild, LogType.CHANNEL_UPDATE_NAME, EmbedUtils.successEmbed()
|
logFeature.sendLog(guild, LogType.CHANNEL_UPDATE_NAME, EmbedUtils.successEmbed()
|
||||||
.setDescription(new EmbedDescriptionBuilder("%s Name Updated".formatted(type))
|
.setDescription(description
|
||||||
.appendLine("%s: %s".formatted(type, event.getChannel().getAsMention()), true)
|
|
||||||
.appendLine("Old Name: `%s`".formatted(event.getOldValue()), true)
|
|
||||||
.appendLine("New Name: `%s`".formatted(event.getNewValue()), true)
|
|
||||||
.build())
|
.build())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
# Spring Configuration
|
||||||
|
spring:
|
||||||
|
data:
|
||||||
|
# MongoDB Configuration
|
||||||
|
mongodb:
|
||||||
|
uri: "mongodb://bat:p4$$w0rd@localhost:27017"
|
||||||
|
database: "bat"
|
||||||
|
auto-index-creation: true # Automatically create collection indexes
|
||||||
|
|
||||||
|
# Redis - This is used for caching
|
||||||
|
redis:
|
||||||
|
host: "localhost"
|
||||||
|
port: 6379
|
||||||
|
database: 0
|
||||||
|
auth: "" # Leave blank for no auth
|
||||||
|
|
||||||
# Discord Configuration
|
# Discord Configuration
|
||||||
discord:
|
discord:
|
||||||
token: "oh my goodnesssssssssss"
|
token: "oh my goodnesssssssssss"
|
||||||
@ -17,12 +33,6 @@ sentry:
|
|||||||
tracesSampleRate: 1.0
|
tracesSampleRate: 1.0
|
||||||
environment: "development"
|
environment: "development"
|
||||||
|
|
||||||
# MongoDB Migration Configuration
|
|
||||||
mongock:
|
|
||||||
runner-type: InitializingBean
|
|
||||||
migration-scan-package:
|
|
||||||
- "cc.fascinated.bat.changelog"
|
|
||||||
|
|
||||||
# Spotify Configuration
|
# Spotify Configuration
|
||||||
spotify:
|
spotify:
|
||||||
redirect-uri: "http://localhost:8080/spotify/callback"
|
redirect-uri: "http://localhost:8080/spotify/callback"
|
||||||
@ -34,18 +44,10 @@ tmdb:
|
|||||||
# API Read Access Token
|
# API Read Access Token
|
||||||
api-key: "api-read-access-token"
|
api-key: "api-read-access-token"
|
||||||
|
|
||||||
# Spring Configuration
|
# DO NOT TOUCH BELOW (unless you know what you're doing, ofc!)
|
||||||
spring:
|
|
||||||
data:
|
|
||||||
# MongoDB Configuration
|
|
||||||
mongodb:
|
|
||||||
uri: "mongodb://bat:p4$$w0rd@localhost:27017"
|
|
||||||
database: "bat"
|
|
||||||
auto-index-creation: true # Automatically create collection indexes
|
|
||||||
|
|
||||||
# Redis - This is used for caching
|
# MongoDB Migration Configuration
|
||||||
redis:
|
mongock:
|
||||||
host: "localhost"
|
runner-type: InitializingBean
|
||||||
port: 6379
|
migration-scan-package:
|
||||||
database: 0
|
- "cc.fascinated.bat.changelog"
|
||||||
auth: "" # Leave blank for no auth
|
|
Loading…
Reference in New Issue
Block a user