mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(webpack): properly emitting process deprecation warnings
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta charset="utf-8" />
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="../webpack/discord.11.3.1.min.js"></script>
|
||||
<script type="text/javascript" src="../webpack/discord.11.4.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
(() => {
|
||||
const client = window.client = new Discord.Client();
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
client.on('message', (message) => {
|
||||
console.log(message.author.username, message.author.id, message.content);
|
||||
console.log(message.guild.roles.find("name", "Sever Staff"));
|
||||
});
|
||||
|
||||
client.login(localStorage.token || window.token || prompt('token pls', 'abcdef123456'))
|
||||
|
||||
Reference in New Issue
Block a user