mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-29 10:39:53 +03:00
Add /mute command (timeouts only) (#44)
Co-authored-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
7a4e20852e
commit
0e3e562b22
13 changed files with 1477 additions and 745 deletions
|
@ -76,8 +76,8 @@ public class KickCommandGroup : CommandGroup {
|
|||
var cfg = data.Configuration;
|
||||
Messages.Culture = data.Culture;
|
||||
|
||||
var existingKickResult = await _guildApi.GetGuildMemberAsync(guildId.Value, target.ID);
|
||||
if (!existingKickResult.IsSuccess) {
|
||||
var memberResult = await _guildApi.GetGuildMemberAsync(guildId.Value, target.ID, CancellationToken);
|
||||
if (!memberResult.IsSuccess) {
|
||||
var embed = new EmbedBuilder().WithSmallTitle(Messages.UserNotFoundShort, currentUser)
|
||||
.WithColour(ColorsList.Red).Build();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue