File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,14 @@ async def _search(
121
121
if channel in results :
122
122
continue
123
123
if channel == source :
124
- reasons [
125
- channel . mention
126
- ] = "Rifts cannot be opened to the same channel as their source."
124
+ reasons [channel . mention ] = (
125
+ "Rifts cannot be opened to the same channel as their source."
126
+ )
127
127
continue
128
128
if getattr (channel , "nsfw" , False ) != is_nsfw :
129
- reasons [
130
- channel . mention
131
- ] = f"Channel { 'is not' if is_nsfw else 'is' } nsfw, while this channel { 'is' if is_nsfw else 'is not' } ."
129
+ reasons [channel . mention ] = (
130
+ f"Channel { 'is not' if is_nsfw else 'is' } nsfw, while this channel { 'is' if is_nsfw else 'is not' } ."
131
+ )
132
132
continue
133
133
if blacklists [1 ].get (channel .id , {}).get ("blacklisted" ):
134
134
reasons [channel .mention ] = "Channel is blocked from receiving rifts."
Original file line number Diff line number Diff line change 41
41
42
42
_H = TypeVar ("_H" , bound = Hashable )
43
43
44
- def deduplicate_iterables (* iterables : Iterable [_H ]) -> List [_H ]: # noqa: F811
45
- ...
44
+ def deduplicate_iterables (* iterables : Iterable [_H ]) -> List [_H ]: ...
46
45
47
46
else :
48
47
from .converter import DiscordConverter as Messageable
@@ -57,13 +56,11 @@ def deduplicate_iterables(*iterables: Iterable[_H]) -> List[_H]: # noqa: F811
57
56
58
57
59
58
@overload
60
- async def can_close (ctx : commands .Context ) -> bool :
61
- ...
59
+ async def can_close (ctx : commands .Context ) -> bool : ...
62
60
63
61
64
62
@overload
65
- async def can_close (ctx : discord .Message , bot : Red ) -> bool :
66
- ...
63
+ async def can_close (ctx : discord .Message , bot : Red ) -> bool : ...
67
64
68
65
69
66
async def can_close (ctx : Union [commands .Context , discord .Message ], bot : Red = None ):
@@ -772,7 +769,8 @@ async def process_kwargs(
772
769
raise RiftError (_ ("Your message was filtered." ))
773
770
embed : Optional [List [discord .Embed ]]
774
771
if await self .bot .embed_requested (
775
- getattr (channel , "recipient" , channel ), command = self .rift # type: ignore
772
+ getattr (channel , "recipient" , channel ),
773
+ command = self .rift , # type: ignore
776
774
):
777
775
embed = [
778
776
discord .Embed (
You can’t perform that action at this time.
0 commit comments