Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
Fix #1136.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trojaner committed Apr 20, 2019
1 parent 85d1c97 commit aa4925e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rocket.Core/Commands/RocketCommands/CommandPermissionGroup.cs
Expand Up @@ -81,10 +81,10 @@ public class CommandGroupAdd : CommandGroupUpdate
IUser targetUser, IPermissionGroup groupToUpdate)
{
if (await permissions.AddGroupAsync(targetUser, groupToUpdate))
await user.SendMessageAsync($"Successfully added {targetUser:Name} to \"{groupToUpdate:Name}\"!",
await user.SendMessageAsync($"Successfully added {targetUser.DisplayName} to \"{groupToUpdate.Name}\"!",
Color.DarkGreen);
else
await user.SendMessageAsync($"Failed to add {targetUser:Name} to \"{groupToUpdate:Name}\"!", Color.Red);
await user.SendMessageAsync($"Failed to add {targetUser.DisplayName} to \"{groupToUpdate.Name}\"!", Color.Red);
}
}

Expand All @@ -99,10 +99,10 @@ public class CommandGroupRemove : CommandGroupUpdate
IUser targetUser, IPermissionGroup groupToUpdate)
{
if (await permissions.RemoveGroupAsync(targetUser, groupToUpdate))
await user.SendMessageAsync($"Successfully removed {targetUser:Name} from \"{groupToUpdate:Name}\"!",
await user.SendMessageAsync($"Successfully removed {targetUser.DisplayName} from \"{groupToUpdate.Name}\"!",
Color.DarkGreen);
else
await user.SendMessageAsync($"Failed to remove {targetUser:Name} from \"{groupToUpdate:Name}\"!",
await user.SendMessageAsync($"Failed to remove {targetUser.DisplayName} from \"{groupToUpdate.Name}\"!",
Color.Red);
}
}
Expand Down

0 comments on commit aa4925e

Please sign in to comment.