yurt
This commit is contained in:
parent
c0ceff4451
commit
442745c194
@ -3,15 +3,7 @@ import discord
|
||||
from discord.ext import commands, tasks
|
||||
from discord import app_commands
|
||||
from discord.ui import Button, View
|
||||
<<<<<<< ours
|
||||
<<<<<<< ours
|
||||
from discord import ui
|
||||
=======
|
||||
from discord import ui, components
|
||||
>>>>>>> theirs
|
||||
=======
|
||||
from discord import ui, components
|
||||
>>>>>>> theirs
|
||||
import random
|
||||
import aiohttp
|
||||
import time
|
||||
@ -528,28 +520,11 @@ class GelbooruWatcherBaseCog(commands.Cog, abc.ABC, metaclass=GelbooruWatcherMet
|
||||
view = ui.LayoutView(timeout=None)
|
||||
container = ui.Container()
|
||||
view.add_item(container)
|
||||
<<<<<<< ours
|
||||
<<<<<<< ours
|
||||
section = ui.Section(accessory=ui.Thumbnail(media=file_url, description="Post"))
|
||||
container.add_item(section)
|
||||
section.add_item(ui.TextDisplay(f"New {self.cog_name} post for tags `{tags}`:"))
|
||||
container.add_item(ui.TextDisplay(file_url))
|
||||
=======
|
||||
=======
|
||||
>>>>>>> theirs
|
||||
|
||||
container.add_item(ui.TextDisplay(f"New {self.cog_name} post for tags `{tags}`:"))
|
||||
|
||||
gallery = ui.MediaGallery()
|
||||
gallery.add_item(
|
||||
components.MediaGalleryItem(media=file_url, description="Post Image")
|
||||
)
|
||||
container.add_item(gallery)
|
||||
|
||||
<<<<<<< ours
|
||||
>>>>>>> theirs
|
||||
=======
|
||||
>>>>>>> theirs
|
||||
return view
|
||||
|
||||
async def _prefix_command_logic(self, ctx: commands.Context, tags: str):
|
||||
|
Loading…
x
Reference in New Issue
Block a user