Update EventBot/Modules/EventModule.cs

This commit is contained in:
Geeves
2019-06-19 17:36:03 +02:00
committed by GitHub
parent e1924269aa
commit 89139869c2

View File

@@ -234,7 +234,7 @@ namespace EventBot.Modules
[Summary("New description for the role.")][Remainder] string description) [Summary("New description for the role.")][Remainder] string description)
{ {
if (eventRole == null) if (eventRole == null)
throw new Exception("Please provide the correct role info, this one does not exist."); throw new Exception("Please provide the correct role ID, this one does not exist.");
if (!eventRole.Event.Active) if (!eventRole.Event.Active)
throw new Exception("This event is finalized. Please make a new event."); throw new Exception("This event is finalized. Please make a new event.");
eventRole.Description = description; eventRole.Description = description;