33
This commit is contained in:
parent
48c3bc2214
commit
aa9ee30897
@ -39,7 +39,7 @@ from .config import (
|
||||
|
||||
async def get_recent_messages(cog: commands.Cog, limit: int, channel_id: str = None) -> Dict[str, Any]:
|
||||
"""Get recent messages from a Discord channel"""
|
||||
from .utils import format_message # Import here to avoid circular dependency at module level test
|
||||
from .utils import format_message # Import here to avoid circular dependency at module level
|
||||
limit = min(max(1, limit), 100)
|
||||
try:
|
||||
if channel_id:
|
||||
|
Loading…
x
Reference in New Issue
Block a user