final commit

This commit is contained in:
Geeves
2019-06-19 07:12:22 +02:00
committed by Karolis2011
parent e1f376f92c
commit 0522482685
3 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ namespace EventBot.Services
public async Task TryJoinEvent(IGuildUser user, EventRole er, string extra, bool extraChecks = true)
{
if (er.Event.GuildId != user.GuildId)
throw new Exception("Cross guild events are forbidden.");
throw new Exception("Cross server events are forbidden.");
if (extraChecks && er.ReamainingOpenings <= 0)
throw new Exception("No openings are left.");
if(er.Event.Participants.Where(p => p.UserId == user.Id).Count() > 0)