import hikari
import tanjun

from avgamah.core.client import Client

nudes_component = tanjun.Component()


@nudes_component.with_slash_command
@tanjun.with_own_permission_check(
    hikari.Permissions.SEND_MESSAGES
    | hikari.Permissions.VIEW_CHANNEL
    | hikari.Permissions.EMBED_LINKS
)
@tanjun.with_nsfw_check
@tanjun.as_slash_command("nudes", "I like Noodles")
async def nudes(ctx: tanjun.abc.Context):
    await ctx.shards.reddit_cache.reddit_sender(ctx, "Nudes")


@tanjun.as_loader
def load_components(client: Client):
    client.add_component(nudes_component.copy())

import hikari
import tanjun

from avgamah.core.client import Client

nudes_component = tanjun.Component()


@nudes_component.with_slash_command
@tanjun.with_own_permission_check(
    hikari.Permissions.SEND_MESSAGES
    | hikari.Permissions.VIEW_CHANNEL
    | hikari.Permissions.EMBED_LINKS
)
@tanjun.with_nsfw_check
@tanjun.as_slash_command("nudes", "I like Noodles")
async def nudes(ctx: tanjun.abc.Context):
    await ctx.shards.reddit_cache.reddit_sender(ctx, "Nudes")


@tanjun.as_loader
def load_components(client: Client):
    client.add_component(nudes_component.copy())
