Update EventBot/Modules/EventModule.cs
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user