Skip to content

Commit

Permalink
remove double intents
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Nov 2, 2023
1 parent 17e383a commit a453c8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class Korii(commands.AutoShardedBot):
def __init__(self, *args: Any, **kwargs: Any) -> None:
def __init__(self) -> None:
super().__init__(
command_prefix=commands.when_mentioned_or("s!"),
case_insensitive=True,
Expand All @@ -20,8 +20,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
intents=discord.Intents.all(),
allowed_mentions=discord.AllowedMentions.none(),
owner_ids=[1022842005920940063, 555818548291829792],
*args,
**kwargs,
)

self.ext_logger = logging.getLogger("korii.ext")
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from bot import Korii
from discord import app_commands

bot: Korii = Korii(intents=discord.Intents.all())
bot: Korii = Korii()

async def on_error(interaction: discord.Interaction[Korii], error: app_commands.AppCommandError):
embed = discord.Embed(
Expand Down

0 comments on commit a453c8e

Please sign in to comment.