Compare commits

..

No commits in common. "ec5daee2de64f17316930d30d43c1b24d840534f" and "6ec35134fd25018a1f7242dc2b6a1131d3860275" have entirely different histories.

View file

@ -1,6 +1,7 @@
import asyncio
import aiohttp
import discord
import requests
from discord import ui
from discord.ext import commands
from redbot.core import Config, app_commands, commands
@ -201,7 +202,7 @@ class Pterodactyl(commands.Cog):
await interaction.response.defer(ephemeral=True, thinking=True)
interaction_message = await interaction.original_response()
headers = await self.get_headers(interaction.guild)
async with self.session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
async with requests.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
response_json = await response.json()
current_status = response_json['attributes']['current_state']
if current_status == "running" or current_status == "starting":