diff --git a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs index 3fcfb654..8b5c012a 100644 --- a/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs +++ b/src/NadekoBot/Modules/Searches/Commands/AnimeSearchCommands.cs @@ -161,8 +161,9 @@ namespace NadekoBot.Modules.Searches } [NadekoCommand, Usage, Description, Aliases] + [RequireContext(ContextType.Guild)] [Priority(0)] - public Task Mal(IUser usr) => Mal(usr.Username); + public Task Mal(IGuildUser usr) => Mal(usr.Username); [NadekoCommand, Usage, Description, Aliases] public async Task Anime([Remainder] string query) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index b25bf15e..59dc6ceb 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -581,10 +581,11 @@ namespace NadekoBot.Modules.Searches } [NadekoCommand, Usage, Description, Aliases] - public async Task Revav([Remainder] IUser usr = null) + [RequireContext(ContextType.Guild)] + public async Task Revav([Remainder] IGuildUser usr = null) { if (usr == null) - usr = Context.User; + usr = (IGuildUser)Context.User; await Context.Channel.SendConfirmAsync($"https://images.google.com/searchbyimage?image_url={usr.RealAvatarUrl()}").ConfigureAwait(false); } @@ -633,7 +634,8 @@ namespace NadekoBot.Modules.Searches } [NadekoCommand, Usage, Description, Aliases] - public async Task Videocall(params IUser[] users) + [RequireContext(ContextType.Guild)] + public async Task Videocall(params IGuildUser[] users) { var allUsrs = users.Append(Context.User); var allUsrsArray = allUsrs.ToArray();