foxbot / Discord.Addons.Interactive

add some interactivity to your commands 🙂
ISC License
73 stars 54 forks source link

Method not found SendMessageAsync() in .net 5.0 #35

Open NightKnight077 opened 3 years ago

NightKnight077 commented 3 years ago

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)

pancine commented 3 years ago

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

kollibroman commented 2 years ago

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