1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-16 18:54:44 +03:00

More minor fixes and changes

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-06-11 21:36:04 +05:00
parent 6bee9ac0fc
commit 3688c60318
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
6 changed files with 804 additions and 1197 deletions

View file

@ -102,7 +102,7 @@ public class KickCommandGroup : CommandGroup {
return Result.FromError(userResult);
var kickResult = await _guildApi.RemoveGuildMemberAsync(
guildId.Value, target.ID, reason: $"({user.GetTag()}) {reason.EncodeHeader()}",
guildId.Value, target.ID, $"({user.GetTag()}) {reason}".EncodeHeader(),
ct: CancellationToken);
if (!kickResult.IsSuccess)
return Result.FromError(kickResult.Error);
@ -115,7 +115,7 @@ public class KickCommandGroup : CommandGroup {
|| (cfg.PrivateFeedbackChannel is not 0 && cfg.PrivateFeedbackChannel != channelId.Value)) {
var logEmbed = new EmbedBuilder().WithSmallTitle(
string.Format(Messages.UserKicked, target.GetTag()), target)
.WithDescription(string.Format(Messages.DescriptionUserPunished, reason))
.WithDescription(string.Format(Messages.DescriptionActionReason, reason))
.WithActionFooter(user)
.WithCurrentTimestamp()
.WithColour(ColorsList.Red)