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:
parent
6bee9ac0fc
commit
3688c60318
6 changed files with 804 additions and 1197 deletions
Commands
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue