updated comments

This commit is contained in:
2022-01-31 17:06:40 -06:00
parent 85d0e833dd
commit c2c59e53ca
2 changed files with 4 additions and 9 deletions

View File

@@ -67,12 +67,11 @@ function getHTML(name: string): Promise<string> {
}
let result = Buffer.alloc(0);
response.on('data', function(chunk) {
response.on('data', chunk => {
result = Buffer.concat([result, chunk]);
});
response.on('end', function() {
// result has response body buffer
response.on('end', () => {
resolve(result.toString());
});
};
@@ -250,5 +249,3 @@ export async function getPlayerInteraction(interaction: CommandInteraction) {
else
await interaction.editReply('```\n'+JSON.stringify(data, null, 2)+'\n```');
}
//await getPlayer('IanWhysp')