2023-09-01 19:37:50 -04:00
|
|
|
import discord
|
|
|
|
from redbot.core import Config, checks, commands
|
|
|
|
|
|
|
|
|
|
|
|
class Forums(commands.Cog):
|
|
|
|
"""Custom cog intended for use on the Galaxy discord server.
|
|
|
|
Developed by SeaswimmerTheFsh."""
|
|
|
|
|
|
|
|
def __init__(self, bot):
|
|
|
|
self.bot = bot
|
|
|
|
self.config = Config.get_conf(self, identifier=2352711325)
|
|
|
|
self.config.register_guild(
|
|
|
|
request_roles = []
|
|
|
|
)
|
|
|
|
|
2023-09-01 19:42:11 -04:00
|
|
|
@commands.command()
|
2023-09-01 19:37:50 -04:00
|
|
|
async def resolved(self, ctx: commands.Context):
|
|
|
|
"""Marks a thread as resolved."""
|
|
|
|
channel = ctx.channel
|
|
|
|
if not isinstance(channel, discord.Thread):
|
|
|
|
await ctx.message.add_reaction("❌")
|
|
|
|
return
|
|
|
|
else:
|
|
|
|
await ctx.message.add_reaction("✅")
|