public async Task SetChannel() { var model = BirthdayService.GetConfig(Context.Guild.Id); model.BirthdayAnnouncementChannelId = Context.Channel.Id; BirthdayService.SaveConfig(model); await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" + $"Channel has been set to: {Context.Channel.Name}"); }
public async Task SetBirthdayRole(IRole role = null) { var model = BirthdayService.GetConfig(Context.Guild.Id); model.BirthdayRole = role?.Id ?? 0; BirthdayService.SaveConfig(model); await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" + $"Birthday Role: {role?.Mention ?? "N/A"}"); }
public async Task ToggleEnabled() { var model = BirthdayService.GetConfig(Context.Guild.Id); model.Enabled = !model.Enabled; BirthdayService.SaveConfig(model); await ReplyAsync($"Birthday Service Enabled: {model.Enabled}\n" + $"NOTE: You need to run the setchannel and setrole command in order for this to work"); }