yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots
https://yourWaifu.github.io/sleepy-discord/
MIT License
708 stars 93 forks source link

im getting error C2661: "MyClientClass::MyClientClass": no overloaded function takes 2 Arguments #227

Closed SquidmarcHD closed 3 years ago

SquidmarcHD commented 3 years ago
#include "sleepy_discord/sleepy_discord.h"

class MyClientClass : public SleepyDiscord::DiscordClient {
public:
    using SleepyDiscord::DiscordClient::DiscordClient;
    void onMessage(SleepyDiscord::Message message) override {
        if (message.startsWith("whcg hello"))
            sendMessage(message.channelID, "Hello " + message.author.username);
    }
};

int main() {
    MyClientClass client("my token was here but i dont want it stolen", SleepyDiscord::USER_CONTROLED_THREADS);
    client.run();
}

im using the example code

nyaruku commented 1 year ago

how did u fixed it ?, im getting the same error