forked from Fascinated/Bat
mention voice channel in the embed
This commit is contained in:
parent
831bc934b4
commit
3878d3029b
@ -83,7 +83,7 @@ public class ChannelListener implements EventListener {
|
|||||||
log.info("User \"{}\" {} voice channel \"{}\" in guild \"{}\"", user.getId(), joined ? "joined" : "left", voiceChannel.getName(), guild.getName());
|
log.info("User \"{}\" {} voice channel \"{}\" in guild \"{}\"", user.getId(), joined ? "joined" : "left", voiceChannel.getName(), guild.getName());
|
||||||
String description = new EmbedDescriptionBuilder("User %s Voice Channel".formatted(joined ? "Joined" : "Left"))
|
String description = new EmbedDescriptionBuilder("User %s Voice Channel".formatted(joined ? "Joined" : "Left"))
|
||||||
.appendLine("User: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
.appendLine("User: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
||||||
.appendLine("Channel: %s".formatted(voiceChannel.getName()), true)
|
.appendLine("Channel: %s".formatted(voiceChannel.getAsMention()), true)
|
||||||
.build();
|
.build();
|
||||||
if (joined) {
|
if (joined) {
|
||||||
logFeature.sendLog(guild, LogType.VOICE_CHANNEL_JOIN, EmbedUtils.successEmbed().setDescription(description).build());
|
logFeature.sendLog(guild, LogType.VOICE_CHANNEL_JOIN, EmbedUtils.successEmbed().setDescription(description).build());
|
||||||
|
Loading…
Reference in New Issue
Block a user