File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
interactions/models/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ async def get_key(self, context: "BaseContext") -> Any:
47
47
if self is Buckets .USER :
48
48
return context .author .id
49
49
if self is Buckets .GUILD :
50
- return context .guild_id if context . guild else context .author .id
50
+ return context .guild_id or context .author .id
51
51
if self is Buckets .CHANNEL :
52
52
return context .channel .id
53
53
if self is Buckets .MEMBER :
54
- return (context .guild_id , context .author .id ) if context .guild else context .author .id
54
+ return (context .guild_id , context .author .id ) if context .guild_id else context .author .id
55
55
if self is Buckets .CATEGORY :
56
56
return await context .channel .parent_id if context .channel .parent else context .channel .id
57
57
if self is Buckets .ROLE :
58
- return context .author .top_role .id if context .guild else context .channel .id
58
+ return context .author .top_role .id if context .guild_id else context .channel .id
59
59
return context .author .id
60
60
61
61
def __call__ (self , context : "BaseContext" ) -> Any :
You can’t perform that action at this time.
0 commit comments