0

Have trouble in coding discord bot in C#. Anyone Help

I am using Visual Studio 2017 in Windows 7. getting an error on last line: "return Task.CompletedTask;" says no definition for completed task. But for VS 2015 users not getting this error. Can anyone help me ?? code: https://hastebin.com/qopogaxoyo.cs (you need to paste your bot token in code)

2nd Jul 2017, 8:22 AM
speCtre
speCtre - avatar
1 Resposta
+ 1
vs 2017 is different from 2015 when it comes to a lot of things, since what you're doing clearly works in 2015 and not in 2017, i suggest downloading vs 2015 and putting the code through there
25th Feb 2018, 2:24 PM
hinanawi
hinanawi - avatar