spellfixes

This commit is contained in:
Geeves
2019-06-18 22:43:41 +02:00
committed by Karolis2011
parent 4125545257
commit cea06e205c
3 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ namespace EventBot.Misc
{
var database = services.GetRequiredService<DatabaseService>();
if (context.Guild == null)
return Task.FromResult(TypeReaderResult.FromError(CommandError.UnmetPrecondition, "Event roles are avaivable only inside guild context."));
return Task.FromResult(TypeReaderResult.FromError(CommandError.UnmetPrecondition, "Event roles are available only inside guild context."));
EventRole er = null;
if (int.TryParse(input, out int id))
er = database.EventRoles.FirstOrDefault(r => r.Id == id);

View File

@@ -15,7 +15,7 @@ namespace EventBot.Misc
{
var events = services.GetRequiredService<EventManagementService>();
if (context.Guild == null)
return Task.FromResult(TypeReaderResult.FromError(CommandError.UnmetPrecondition, "Events are avaivable only inside guild context."));
return Task.FromResult(TypeReaderResult.FromError(CommandError.UnmetPrecondition, "Events are available only inside guild context."));
Event ev;
if (input == null)
ev = events.FindEventBy(context.Guild, true);