Skip to content

Commit

Permalink
confirmation dialog update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruvacube committed Jan 17, 2022
1 parent a4d19f2 commit 096ce33
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 6 deletions.
8 changes: 7 additions & 1 deletion minato_namikaze/bot_files/cogs/moderation/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Optional, Union

import discord
from discord.ext import commands, tasks
from discord.ext import commands

from ...lib import (
ActionReason,
Expand Down Expand Up @@ -805,6 +805,12 @@ def predicate(m):
await self.do_removal(
ctx, args.search, predicate, before=args.before, after=args.after
)

@commands.command()
@commands.guild_only()
@commands.has_guild_permissions(timeout_members=True)
async def timeout(self, ctx):
pass


def setup(bot):
Expand Down
4 changes: 3 additions & 1 deletion minato_namikaze/bot_files/lib/classes/setup/ban.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import discord
from discord.ext import menus
from discord.ext.menus.views import ViewMenu


from ...util import SetupVars
from ..embed import Embed

ban = SetupVars.ban.value


class Ban(menus.Menu):
class Ban(ViewMenu):
def __init__(self, bot, timeout, channel):
super().__init__(timeout=timeout)
self.bot = bot
Expand Down
3 changes: 2 additions & 1 deletion minato_namikaze/bot_files/lib/classes/setup/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

from ...util import SetupVars
from ..embed import Embed
from discord.ext.menus.views import ViewMenu


class Feedback(menus.Menu):
class Feedback(ViewMenu):
def __init__(self, bot, timeout, channel):
super().__init__(timeout=timeout)
self.bot = bot
Expand Down
3 changes: 2 additions & 1 deletion minato_namikaze/bot_files/lib/classes/setup/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

from ...util import SetupVars, perms_dict
from ..embed import Embed
from discord.ext.menus.views import ViewMenu


class Support(menus.Menu):
class Support(ViewMenu):
def __init__(self, bot, timeout, channel):
super().__init__(timeout=timeout)
self.bot = bot
Expand Down
3 changes: 2 additions & 1 deletion minato_namikaze/bot_files/lib/classes/setup/unban.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

from ...util import SetupVars
from ..embed import Embed
from discord.ext.menus.views import ViewMenu


class Unban(menus.Menu):
class Unban(ViewMenu):
def __init__(self, bot, timeout, channel):
super().__init__(timeout=timeout)
self.bot = bot
Expand Down
3 changes: 2 additions & 1 deletion minato_namikaze/bot_files/lib/classes/setup/warns.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

from ...util import SetupVars
from ..embed import Embed
from discord.ext.menus.views import ViewMenu


class Warns(menus.Menu):
class Warns(ViewMenu):
def __init__(self, bot, timeout, channel):
super().__init__(timeout=timeout)
self.bot = bot
Expand Down
1 change: 1 addition & 0 deletions requirements.min.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ betterstatcord.py
discord-ext-menus @ git+https://github.com/Rapptz/discord-ext-menus@master
discord-ext-owoify
discord.py @ git+https://github.com/StockerMC/discord.py.git@master
discord-ext-menus-views @ git+https://github.com/oliver-ni/discord-ext-menus-views@master
eight-ball
english-words
DiscordUtils @ git+https://github.com/The-4th-Hokage/DiscordUtils.git@master
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 096ce33

Please sign in to comment.