File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from typing import TYPE_CHECKING , TypeAlias
3
+ from typing import Any , TYPE_CHECKING , TypeAlias
4
4
5
5
import discord
6
6
from discord .ext import commands
@@ -46,6 +46,13 @@ def author_is_mod(self) -> bool:
46
46
roles = member ._roles # type: ignore # we know this won't change for a while
47
47
return roles .has (Roles .ADMIN ) or roles .has (Roles .MODERATOR )
48
48
49
+ @discord .utils .copy_doc (commands .Context .reply ) # type: ignore
50
+ async def reply (self , content : str | None = None , ** kwargs : Any ) -> discord .Message :
51
+ if "mention_author" not in kwargs :
52
+ kwargs ["mention_author" ] = False
53
+
54
+ return await super ().reply (content , ** kwargs )
55
+
49
56
50
57
class GuildContext (Context ):
51
58
guild : discord .Guild # type: ignore # type lie due to narrowing
You can’t perform that action at this time.
0 commit comments