added comments

This commit is contained in:
2022-01-31 14:24:29 -06:00
parent a3a7acf9a8
commit 5167a25626
3 changed files with 9 additions and 1 deletions

View File

@@ -151,7 +151,11 @@ export async function getPlayer(name: string): Promise<uniteApiData|null> {
return null;
}
export async function getPlayerInteraction(interaction: CommandInteraction): Promise<void> {
/**
* calls getPlayer() with the name from the interaction
* @param interaction discord interaction
*/
export async function getPlayerInteraction(interaction: CommandInteraction) {
let username = interaction.options.getString('username', true);
await interaction.deferReply();