Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions ModuBotDiscord/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
import logging
import warnings
from abc import ABC, abstractmethod
from typing import Awaitable, Callable, List, Optional, TypeVar
from typing import Awaitable, Callable, List, Optional, TypeVar, Union

import discord
from discord import Embed, Interaction
from discord.utils import MISSING, _MissingSentinel
from ModuBotDiscord.config import DiscordConfig

from ..enums import PermissionEnum
Expand All @@ -20,18 +21,18 @@ async def send_message(
content: Optional[str] = None,
msg: Optional[str] = None,
*,
embed: Optional[Embed] = None,
embeds: Optional[List[Embed]] = None,
file: Optional[discord.File] = None,
files: Optional[List[discord.File]] = None,
view: Optional[discord.ui.View] = None,
embed: Union[Embed, _MissingSentinel] = MISSING,
embeds: Union[List[Embed], _MissingSentinel] = MISSING,
file: Union[discord.File, _MissingSentinel] = MISSING,
files: Union[List[discord.File], _MissingSentinel] = MISSING,
view: Union[discord.ui.View, _MissingSentinel] = MISSING,
tts: bool = False,
ephemeral: bool = False,
allowed_mentions: Optional[discord.AllowedMentions] = None,
allowed_mentions: Union[discord.AllowedMentions, _MissingSentinel] = MISSING,
suppress_embeds: bool = False,
silent: bool = False,
delete_after: Optional[float] = None,
poll=None,
poll: Union[discord.Poll, _MissingSentinel] = MISSING,
) -> None:
if msg is not None:
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ModuBotDiscord"
version = "0.3.1"
version = "0.3.2"
description = "Modular Discord bot framework built on top of ModuBotCore"
authors = [{ name = "Endkind", email = "endkind.ender@endkind.net" }]
readme = "README.md"
Expand Down
Loading