mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-13 22:08:37 +00:00
fix build
This commit is contained in:
parent
0a582f31df
commit
22820cd211
@ -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 {}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user