feat(aurora): imma be real chief i have no idea what i did this commit

This commit is contained in:
SeaswimmerTheFsh 2024-05-03 21:35:29 -04:00
parent a641b11daa
commit af108519f9
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F
4 changed files with 40 additions and 20 deletions

View file

@ -5,9 +5,9 @@ from datetime import timedelta as td
from typing import Optional, Union
from dateutil.relativedelta import relativedelta as rd
from discord import Guild, Interaction, Member, SelectOption, User
from discord import File, Guild, Interaction, Member, SelectOption, User
from discord.errors import Forbidden, NotFound
from redbot.core import commands
from redbot.core import commands, data_manager
from redbot.core.utils.chat_formatting import error
from .config import config
@ -291,3 +291,8 @@ def timedelta_from_relativedelta(relativedelta: rd) -> td:
now = datetime.now()
then = now - relativedelta
return now - then
def get_footer_image(coginstance: commands.Cog) -> File:
"""Returns the footer image for the embeds."""
image_path = data_manager.bundled_data_path(coginstance) / "arrow.png"
return File(image_path, filename="arrow.png", description="arrow")