mirror of
https://gitlab.com/pancakes1234/wdiscordbotserver.git
synced 2025-06-16 07:14:21 -06:00
Refactor: Update WHOIS query method to use 'whois.query' for improved functionality
This commit is contained in:
parent
a3ba26c6b2
commit
c3500cdaad
@ -12,7 +12,7 @@ class Whois(commands.Cog):
|
||||
async def whois(self, interaction: discord.Interaction, domain: str):
|
||||
await interaction.response.defer()
|
||||
try:
|
||||
w = await self.bot.loop.run_in_executor(None, whois.whois, domain)
|
||||
w = await self.bot.loop.run_in_executor(None, whois.query, domain)
|
||||
except Exception as e:
|
||||
await interaction.followup.send(f"Failed to fetch WHOIS info: {e}")
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user