fix build

This commit is contained in:
13xforever 2019-08-07 20:51:24 +05:00
parent 0a582f31df
commit 22820cd211
3 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ namespace CompatBot.Commands
bool hasMention = false;
try
{
var lookup = await new DiscordUserConverter().ConvertAsync(potentialUserId, ctx).ConfigureAwait(false);
var lookup = await ((IArgumentConverter<DiscordUser>)new DiscordUserConverter()).ConvertAsync(potentialUserId, ctx).ConfigureAwait(false);
hasMention = lookup.HasValue;
}
catch {}

View File

@ -113,7 +113,7 @@ namespace CompatBot.Commands
return;
}
var user = await new DiscordUserConverter().ConvertAsync(me, ctx).ConfigureAwait(false);
var user = await ((IArgumentConverter<DiscordUser>)new DiscordUserConverter()).ConvertAsync(me, ctx).ConfigureAwait(false);
if (user.HasValue)
await By(ctx, user.Value, number).ConfigureAwait(false);
}

View File

@ -16,7 +16,7 @@ namespace CompatBot.Utils
{
try
{
var result = await new DiscordMemberConverter().ConvertAsync(word, ctx).ConfigureAwait(false);
var result = await ((IArgumentConverter<DiscordMember>)new DiscordMemberConverter()).ConvertAsync(word, ctx).ConfigureAwait(false);
return result.HasValue ? result.Value : null;
}
#pragma warning disable CS0168 // Variable is declared but never used