"""Constant liée aux channel"""

from discord import role
from .Role import roles

LOGCHAN = 922492857007341568
"""ID du channel de log"""
ARCHIVE = 800042738623840278
"""id du channel d'archive d'image"""

CONFIRM_CHAN = 919487889719570432
"""id du channel de validation doublon"""

LOG_CONFIRM = 918358853463183430


class MetaEnum(type):
    def __contains__(cls, x):
        return x in [cls.SAFE, cls.HOT, cls.NSFW]

    def __iter__(cls):
        for attr, value in cls.__dict__.items():
            if not attr.startswith("__"):
                yield value


class CHANNEL_TYPE(metaclass=MetaEnum):
    SAFE = "✅"
    HOT = "🔥"
    NSFW = "🔞"


CH_TO_ROLE = {
    "✅": roles.SAFE,
    "🔥": roles.HOT,
    "🔞": roles.NSFW
}
"""Constant liée aux channel"""

from discord import role
from .Role import roles

LOGCHAN = 922492857007341568
"""ID du channel de log"""
ARCHIVE = 800042738623840278
"""id du channel d'archive d'image"""

CONFIRM_CHAN = 919487889719570432
"""id du channel de validation doublon"""

LOG_CONFIRM = 918358853463183430


class MetaEnum(type):
    def __contains__(cls, x):
        return x in [cls.SAFE, cls.HOT, cls.NSFW]

    def __iter__(cls):
        for attr, value in cls.__dict__.items():
            if not attr.startswith("__"):
                yield value


class CHANNEL_TYPE(metaclass=MetaEnum):
    SAFE = "✅"
    HOT = "🔥"
    NSFW = "🔞"


CH_TO_ROLE = {
    "✅": roles.SAFE,
    "🔥": roles.HOT,
    "🔞": roles.NSFW
}
Constant liée aux channel ID du channel de log id du channel d'archive d'image id du channel de validation doublon