16 lines
		
	
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | import discord | ||
|  | from discord.app_commands import locale_str | ||
|  | from discord.utils import MISSING | ||
|  | 
 | ||
|  | from .config import CONFIG | ||
|  | 
 | ||
|  | 
 | ||
|  | def ev_command( | ||
|  |     name: str, | ||
|  |     description: str | locale_str = MISSING, | ||
|  | ): | ||
|  |     return discord.app_commands.command( | ||
|  |         name=CONFIG.command_prefix + name, | ||
|  |         description=description, | ||
|  |     ) |