public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo) { Shipping.Ship ship = ParentPlugin.Sink(data.Message.Author as SocketGuildUser, shippieOne, shippieTwo, out bool succesful); if (succesful) { return(TaskResult(null, "Succesfully sunk " + ParentPlugin.GetShipName(ship) + ", at least for you.")); } return(TaskResult(null, $"Failed to sink {ParentPlugin.GetShipName (ship)} - You have not shipped them yet.")); }
public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo) { Shipping.Ship ship = ParentPlugin.Ship(data.Message.Author as SocketGuildUser, shippieOne, shippieTwo, out bool succesful); if (succesful) { return(TaskResult(ship, "Succesfully shipped " + shippieOne.GetShownName() + " and " + shippieTwo.GetShownName() + ", now known as " + ParentPlugin.GetShipName(ship) + ".")); } return(TaskResult(ship, $"Failed to ship {shippieOne.GetShownName ()} x {shippieTwo.GetShownName ()} - You've already shipped them.")); }
public Task <Result> Execute(CommandMetadata data, SocketGuildUser shippieOne, SocketGuildUser shippieTwo) { ParentPlugin.DeleteShipName(shippieOne, shippieTwo); Shipping.Ship ship = ParentPlugin.GetShipByShippies(shippieOne, shippieTwo); return(TaskResult(null, $"{shippieOne.GetShownName ()} x {shippieTwo.GetShownName ()} has been named back to {ParentPlugin.GetShipName (ship)}.")); }