Include invite link in error message

This commit is contained in:
Ske 2019-08-12 06:03:20 +02:00
parent d3f821a266
commit 7945603cdb

View File

@ -248,7 +248,7 @@ namespace PluralKit.Bot
} else } else
{ {
await ctx.Message.Channel.SendMessageAsync( await ctx.Message.Channel.SendMessageAsync(
$"{Emojis.Error} Internal error occurred. Please join the support server (see `pk;help`), and send the developer this ID: `{id.EventId}`."); $"{Emojis.Error} Internal error occurred. Please join the support server (<https://discord.gg/PczBt78>), and send the developer this ID: `{id.EventId}`.");
HandleRuntimeError((_result as ExecuteResult?)?.Exception, svc); HandleRuntimeError((_result as ExecuteResult?)?.Exception, svc);
} }
} else if ((_result.Error == CommandError.BadArgCount || _result.Error == CommandError.MultipleMatches) && cmd.IsSpecified) { } else if ((_result.Error == CommandError.BadArgCount || _result.Error == CommandError.MultipleMatches) && cmd.IsSpecified) {