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();
|
||||
String type = formatChannelType(channel);
|
||||
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()
|
||||
.setDescription(new EmbedDescriptionBuilder("%s Name Updated".formatted(type))
|
||||
.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)
|
||||
.setDescription(description
|
||||
.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:
|
||||
token: "oh my goodnesssssssssss"
|
||||
@ -17,12 +33,6 @@ sentry:
|
||||
tracesSampleRate: 1.0
|
||||
environment: "development"
|
||||
|
||||
# MongoDB Migration Configuration
|
||||
mongock:
|
||||
runner-type: InitializingBean
|
||||
migration-scan-package:
|
||||
- "cc.fascinated.bat.changelog"
|
||||
|
||||
# Spotify Configuration
|
||||
spotify:
|
||||
redirect-uri: "http://localhost:8080/spotify/callback"
|
||||
@ -34,18 +44,10 @@ tmdb:
|
||||
# API Read Access Token
|
||||
api-key: "api-read-access-token"
|
||||
|
||||
# Spring Configuration
|
||||
spring:
|
||||
data:
|
||||
# MongoDB Configuration
|
||||
mongodb:
|
||||
uri: "mongodb://bat:p4$$w0rd@localhost:27017"
|
||||
database: "bat"
|
||||
auto-index-creation: true # Automatically create collection indexes
|
||||
# DO NOT TOUCH BELOW (unless you know what you're doing, ofc!)
|
||||
|
||||
# Redis - This is used for caching
|
||||
redis:
|
||||
host: "localhost"
|
||||
port: 6379
|
||||
database: 0
|
||||
auth: "" # Leave blank for no auth
|
||||
# MongoDB Migration Configuration
|
||||
mongock:
|
||||
runner-type: InitializingBean
|
||||
migration-scan-package:
|
||||
- "cc.fascinated.bat.changelog"
|
Loading…
x
Reference in New Issue
Block a user