💥 Remove try/catch from timeout
Call to this method should now be surrounded by try catch
This commit is contained in:
@@ -15,11 +15,7 @@ async function timeout(
|
||||
reason = "";
|
||||
}
|
||||
|
||||
try {
|
||||
await chatClient.timeout(channel, username, time, reason);
|
||||
} catch (e) {
|
||||
// user cannot be timed out
|
||||
}
|
||||
await chatClient.timeout(channel, username, time, reason);
|
||||
}
|
||||
|
||||
export { timeout };
|
||||
|
Reference in New Issue
Block a user