import misc_utils the same way as the other modules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ab0a040926
commit
e95c8f8113
1 file changed
+6
-3
@@ -3,7 +3,7 @@ import io
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from .misc_utils import Paginator
|
from cogs.utils import misc_utils
|
||||||
|
|
||||||
|
|
||||||
async def send_as_txt_file(interaction: discord.Interaction, content: str, filename: str):
|
async def send_as_txt_file(interaction: discord.Interaction, content: str, filename: str):
|
||||||
@@ -114,7 +114,7 @@ class ScrollerButton(discord.ui.Button):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
paginator: Paginator,
|
paginator: misc_utils.Paginator,
|
||||||
button_action: callable,
|
button_action: callable,
|
||||||
content_constructor: callable,
|
content_constructor: callable,
|
||||||
owner: discord.User | discord.Member,
|
owner: discord.User | discord.Member,
|
||||||
@@ -162,7 +162,10 @@ class Scroller(discord.ui.View):
|
|||||||
"""View that allows scrolling through pages of data using the pagination module"""
|
"""View that allows scrolling through pages of data using the pagination module"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, paginatior: Paginator, owner: discord.User | discord.Member, content_constructor: callable = None
|
self,
|
||||||
|
paginatior: misc_utils.Paginator,
|
||||||
|
owner: discord.User | discord.Member,
|
||||||
|
content_constructor: callable = None,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
Reference in new issue
Block a user