public static IEnumerable <string> GetRoleNames() { foreach (GameRole role in Enum.GetValues(typeof(GameRole))) { yield return(GameElement.Role(role)); } }
public static PollCommandArguments Kick(string name) { return(new PollCommandArguments { Title = $"Excommunicate vote", Description = $"Is {name} a {GameElement.Role(GameRole.Killer)} ?" }); }
public static EmbedFieldBuilder PlayerScore(PlayerReward obj) { string description = string.Join("\n", new string[] { string.Empty, $"Role: {GameElement.Role(obj.Player.Role)}", $"Alive: {IsAlive(obj.Player.Active)}", $"Alive for: {obj.DaysAliveFor} days", $"Reward: {obj.Reward} coins" }); return(new EmbedFieldBuilder() .WithIsInline(true) .WithName(obj.Player.User.Username) .WithValue(description)); }
public static string InitialRoleReveal(GameRole role) => $"Your role is {GameElement.Role(role)}.";