text: class appConstruct {
  	constructor() {
  		this.target = 'commands';
  		
  		this.data = {
  			default_member_permissions: 0,
  			default_permission: false,
  		};
  	}
  	
  	get create() {
  		//return console.log(this.data);
  		//return this.data;
  		return fly.send(JSON.stringify(this.data), `/api/applications/${appId}/${this.target}`, 'POST', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  	}
  	
  	delete(message) {
  		if (message && message.guild) return fly.send('', `/api/applications/${appId}/guilds/${message.guild}/commands/${message.command}`, 'DELETE', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  
  		return fly.send('', `/api/applications/${appId}/commands/${message.command}`, 'DELETE', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  	}
  	
  	commandTarget(target) {
  		if(!target) return;
  		this.target = `guilds/${target}/commands`;
  		return this;
  	}
  	
  	commandName(name) {
  		this.data['name'] = name;
  		return this;
  	}
  	
  	commandDescription(description) {
  		this.data['description'] = description;
  		return this;
  	}
  	
  	commandType(type) {
  		this.data['type'] = type;
  		return this;
  	}
  	
  	create2(message) { 
  		let constructedMessage = {
  			name: message.name,
  			type: 1,
  			description: 'Send a random adorable animal photo',
  			default_member_permissions: 0,
  			options: [
  				{
  					name: 'animal',
  					description: 'The type of animal',
  					type: 3,
  					required: true,
  					choices: [
  						{
  							name: 'Dog',
  							value: 'animal_dog',
  						},
  						{
  							name: 'Bird',
  							value: 'animal_bird',
  						},
  						{
  							name: 'Snake',
  							value: 'animal_snake',
  						},
  					],
  				},
  				{
  					name: 'only_smol',
  					description: 'Whether to show only baby animals',
  					type: 5,
  					required: false,
  				},
  			],
  		};
  
  		return fly.send(JSON.stringify(constructedMessage), `/api/applications/${appId}/commands`, 'POST', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  	}
  
  	view(message) {
  		if (message && message.guild && message.command) return fly.send('', `/api/applications/${appId}/guilds/${message.guild}/commands/${message.command}`, 'GET', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  
  		if (message && message.guild) return fly.send('', `/api/applications/${appId}/guilds/${message.guild}/commands`, 'GET', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  
  		if (message && message.command) return fly.send('', `/api/applications/${appId}/commands/${message.command}`, 'GET', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  
  		return fly.send('', `/api/applications/${appId}/commands`, 'GET', 'discord.com', 443, { 'Content-Type': 'application/json', Authorization: `Bot ${token}` });
  	}
  }
  
  module.exports = appConstruct;
  