public nadeko fix
This commit is contained in:
		@@ -253,8 +253,6 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
                await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
 | 
					                await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
#if !GLOBAL_NADEKO
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static Task<string> GetE621ImageLink(string tag) => Task.Run(async () =>
 | 
					        public static Task<string> GetE621ImageLink(string tag) => Task.Run(async () =>
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@@ -278,6 +276,10 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public static Task<string> GetRule34ImageLink(string tag) =>
 | 
				
			||||||
 | 
					            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !GLOBAL_NADEKO
 | 
				
			||||||
        public static Task<string> GetYandereImageLink(string tag) =>
 | 
					        public static Task<string> GetYandereImageLink(string tag) =>
 | 
				
			||||||
            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Yandere);
 | 
					            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Yandere);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -286,9 +288,6 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        public static Task<string> GetGelbooruImageLink(string tag) =>
 | 
					        public static Task<string> GetGelbooruImageLink(string tag) =>
 | 
				
			||||||
            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Gelbooru);
 | 
					            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Gelbooru);
 | 
				
			||||||
 | 
					 | 
				
			||||||
        public static Task<string> GetRule34ImageLink(string tag) =>
 | 
					 | 
				
			||||||
            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34);
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user