chore: consistency/prettier (#3852)

* chore: consistency/prettier

* chore: rebase

* chore: rebase

* chore: include typings

* fix: include typings file in prettier lint-staged
This commit is contained in:
Crawl
2020-02-29 14:35:57 +01:00
committed by GitHub
parent 6650d50a56
commit c065156a88
127 changed files with 5198 additions and 4513 deletions

View File

@@ -1,32 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>discord.js Webpack test</title>
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="../webpack/discord.js"></script>
<script type="text/javascript">
(() => {
const client = window.client = new Discord.Client();
<head>
<title>discord.js Webpack test</title>
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="../webpack/discord.js"></script>
<script type="text/javascript">
(() => {
const client = (window.client = new Discord.Client());
client.on('ready', () => {
console.log('[CLIENT] Ready!');
});
client.on('ready', () => {
console.log('[CLIENT] Ready!');
});
client.on('debug', console.log);
client.on('debug', console.log);
client.on('error', console.error);
client.on('error', console.error);
client.ws.on('close', (event) => console.log('[CLIENT] Disconnect!', event));
client.ws.on('close', event => console.log('[CLIENT] Disconnect!', event));
client.on('message', (message) => {
console.log(message.author.username, message.author.id, message.content);
});
client.on('message', message => {
console.log(message.author.username, message.author.id, message.content);
});
client.login(localStorage.token || window.token || prompt('token pls', 'abcdef123456'))
.then((token) => localStorage.token = token, console.log);
})();
</script>
</body>
client
.login(localStorage.token || window.token || prompt('token pls', 'abcdef123456'))
.then(token => (localStorage.token = token), console.log);
})();
</script>
</body>
</html>