yourWaifu / sleepy-discord

C++ library for the Discord chat client. Please use Rust for new bots

Home Page:https://yourWaifu.github.io/sleepy-discord/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

SquidmarcHD opened this issue · comments

#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

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