added comments
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user