small cleanup
This commit is contained in:
@@ -34,9 +34,6 @@ class EmotesScanner(Scanner):
|
|||||||
help=EmotesScanner.help(),
|
help=EmotesScanner.help(),
|
||||||
intro_context="Emoji usage",
|
intro_context="Emoji usage",
|
||||||
)
|
)
|
||||||
self.top = 20
|
|
||||||
self.all_emojis = False
|
|
||||||
self.show_members = False
|
|
||||||
|
|
||||||
async def init(self, message: discord.Message, *args: str) -> bool:
|
async def init(self, message: discord.Message, *args: str) -> bool:
|
||||||
guild = message.channel.guild
|
guild = message.channel.guild
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ class MentionedScanner(Scanner):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
has_digit_args=True,
|
||||||
valid_args=["all"],
|
valid_args=["all"],
|
||||||
help=MentionedScanner.help(),
|
help=MentionedScanner.help(),
|
||||||
intro_context="Mentioned by members",
|
intro_context="Mentioned by members",
|
||||||
)
|
)
|
||||||
self.top = 10
|
|
||||||
|
|
||||||
async def init(self, message: discord.Message, *args: str) -> bool:
|
async def init(self, message: discord.Message, *args: str) -> bool:
|
||||||
# get max emotes to view
|
# get max emotes to view
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ class MentionsScanner(Scanner):
|
|||||||
help=MentionsScanner.help(),
|
help=MentionsScanner.help(),
|
||||||
intro_context="Mention usage",
|
intro_context="Mention usage",
|
||||||
)
|
)
|
||||||
self.top = 10
|
|
||||||
|
|
||||||
async def init(self, message: discord.Message, *args: str) -> bool:
|
async def init(self, message: discord.Message, *args: str) -> bool:
|
||||||
# get max emotes to view
|
# get max emotes to view
|
||||||
|
|||||||
Reference in New Issue
Block a user