public async Task AddStatus(CommandContext ctx, ActivityType type, [RemainingText] string activity) { if (!StatusModule.IsValidStatus(type, activity)) { await ctx.Channel.SendMessageAsync($"{ctx.Author.Mention}, Invalid status!"); return; } await StatusModule.AddStatus(type, activity); }
public async Task SetStatus(CommandContext ctx, ActivityType type, [RemainingText] string activity) { if (!StatusModule.IsValidStatus(type, activity)) { await ctx.Channel.SendMessageAsync($"{ctx.Author.Mention}, Invalid status!"); return; } StatusModule.StatusConfig.Mode = StatusMode.Manual; StatusModule.StatusTimer.Stop(); await StatusModule.SetStatus(type, activity); }