cache: sillier self message
This commit is contained in:
		
							parent
							
								
									57a3a4e3a8
								
							
						
					
					
						commit
						34135ec526
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -11,7 +11,7 @@ cache.helpText = "Cache a user to your client from their ID";
 | 
				
			||||||
cache.usage = "[user id]";
 | 
					cache.usage = "[user id]";
 | 
				
			||||||
cache.callback = async function (msg, id) {
 | 
					cache.callback = async function (msg, id) {
 | 
				
			||||||
  if (!id || id == "") return "Arguments required";
 | 
					  if (!id || id == "") return "Arguments required";
 | 
				
			||||||
  if (id == msg.author?.id ?? msg.user?.id) return "Can't cache yourself.";
 | 
					  if (id == msg.author?.id ?? msg.user?.id) return "https://tenor.com/view/cat-pointless-sad-run-futile-gif-25822185";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
    await hf.bot.requestHandler.request("GET", APIEndpoints.USER(id), true);
 | 
					    await hf.bot.requestHandler.request("GET", APIEndpoints.USER(id), true);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue