If it didn’t work then it should of returned and error.
You are not logging the error
As per the example in the docs
client.timeout("channel", "username", 300, "reason")
.then((data) => {
// data returns [channel, username, seconds, reason]
}).catch((err) => {
//
});
You can add logging inside the catch and/or do whatever additional things in the catch you need