Refactor macros
This commit is contained in:
		@@ -31,9 +31,7 @@ pub async fn check_guild_subscription(
 | 
			
		||||
    cache_http: impl CacheHttp,
 | 
			
		||||
    guild_id: impl Into<GuildId>,
 | 
			
		||||
) -> bool {
 | 
			
		||||
    if let Some(guild) = cache_http.cache().unwrap().guild(guild_id) {
 | 
			
		||||
        let owner = guild.owner_id;
 | 
			
		||||
 | 
			
		||||
    if let Some(owner) = cache_http.cache().unwrap().guild(guild_id).map(|g| g.owner_id) {
 | 
			
		||||
        check_subscription(&cache_http, owner).await
 | 
			
		||||
    } else {
 | 
			
		||||
        false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user