utility: add inviteinfo interaction command
This commit is contained in:
		
							parent
							
								
									e280d90053
								
							
						
					
					
						commit
						4735cce106
					
				
					 1 changed files with 16 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1049,6 +1049,22 @@ lookupinvite.callback = async function (msg, line) {
 | 
			
		|||
};
 | 
			
		||||
hf.registerCommand(lookupinvite);
 | 
			
		||||
 | 
			
		||||
const inviteinfoInteraction = new InteractionCommand("inviteinfo");
 | 
			
		||||
inviteinfoInteraction.helpText = "Get information on an invite code";
 | 
			
		||||
inviteinfoInteraction.options.invite = {
 | 
			
		||||
  name: "invite",
 | 
			
		||||
  type: Constants.ApplicationCommandOptionTypes.STRING,
 | 
			
		||||
  description: "Invite code to get info for",
 | 
			
		||||
  required: true,
 | 
			
		||||
  default: "",
 | 
			
		||||
};
 | 
			
		||||
inviteinfoInteraction.callback = async function (interaction) {
 | 
			
		||||
  const invite = getOption(interaction, inviteinfoInteraction, "invite");
 | 
			
		||||
 | 
			
		||||
  return lookupinvite.callback(interaction, invite);
 | 
			
		||||
};
 | 
			
		||||
hf.registerCommand(inviteinfoInteraction);
 | 
			
		||||
 | 
			
		||||
const snowflake = new Command("snowflake");
 | 
			
		||||
snowflake.category = CATEGORY;
 | 
			
		||||
snowflake.helpText = "Converts a snowflake ID into readable time.";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue