Discord.Addons.Interactive icon indicating copy to clipboard operation
Discord.Addons.Interactive copied to clipboard

Method not found SendMessageAsync() in .net 5.0

Open NightKnight077 opened this issue 4 years ago • 2 comments

I am getting the below error when trying to send a paginated message to a channel using .net 5.0 and Discord.Net 2.4.0.

I am confused as I thought this was fixed in pull request #34 for issue #33 but I am still seeing the issue in my code. Is there something I am missing?

---> System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task1<Discord.Rest.RestUserMessage> Discord.WebSocket.ISocketMessageChannel.SendMessageAsync(System.String, Boolean, Discord.Embed, Discord.RequestOptions)'. at Discord.Addons.Interactive.PaginatedMessageCallback.DisplayAsync() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Discord.Addons.Interactive.PaginatedMessageCallback.DisplayAsync() at Discord.Addons.Interactive.InteractiveService.SendPaginatedMessageAsync(SocketCommandContext context, PaginatedMessage pager, ICriterion1 criterion)

NightKnight077 avatar Jul 06 '21 14:07 NightKnight077

While it doesn't support Discord.NET +2.4.0, try to downgrade all Discord.NET packages to 2.2.0

pancine avatar Jul 23 '21 15:07 pancine

Use one of the forks, they have updated versions of packages

kollibroman avatar Feb 15 '22 12:02 kollibroman