fix: remove references to removed code
@@ -10,20 +10,6 @@ void on_ready(struct discord *client, const struct discord_user *me) {
me->username, me->discriminator);
}
-void on_reconnect(
- struct discord *client,
- const struct discord_user *bot,
- const struct discord_message *msg)
-{
- if (msg->author->bot)
- return;
-
- struct discord_create_message_params params = { .content = "Reconnecting ..." };
- discord_create_message(client, msg->channel_id, &params, NULL);
-
- discord_gateway_reconnect(&client->gw);
-}
-
void on_disconnect(
struct discord *client,
const struct discord_user *bot,
@@ -52,7 +38,6 @@ int main(int argc, char *argv[])
assert(NULL != client);
discord_set_on_ready(client, &on_ready);
- discord_set_on_command(client, "reconnect", &on_reconnect);
discord_set_on_command(client, "disconnect", &on_disconnect);
discord_run(client);
