Removed server from queries where user set #162
This commit is contained in:
parent
fde318b85d
commit
23e238b7d5
@ -8,7 +8,6 @@ class UserJoinedServerQuery(DataQueryABC):
|
||||
|
||||
self.set_field("id", self.resolve_id)
|
||||
self.set_field("user", self.resolve_user)
|
||||
self.set_field("server", self.resolve_server)
|
||||
self.set_field("joined_on", self.resolve_joined_on)
|
||||
self.set_field("leaved_on", self.resolve_leaved_on)
|
||||
|
||||
@ -20,10 +19,6 @@ class UserJoinedServerQuery(DataQueryABC):
|
||||
def resolve_user(x: UserJoinedServer, *_):
|
||||
return x.user
|
||||
|
||||
@staticmethod
|
||||
def resolve_server(x: UserJoinedServer, *_):
|
||||
return x.user.server
|
||||
|
||||
@staticmethod
|
||||
def resolve_joined_on(x: UserJoinedServer, *_):
|
||||
return x.joined_on
|
||||
|
@ -14,7 +14,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC):
|
||||
self.set_field("channel_id", self.resolve_channel_id)
|
||||
self.set_field("channel_name", self.resolve_channel_name)
|
||||
self.set_field("user", self.resolve_user)
|
||||
self.set_field("server", self.resolve_server)
|
||||
self.set_field("joined_on", self.resolve_joined_on)
|
||||
self.set_field("leaved_on", self.resolve_leaved_on)
|
||||
|
||||
@ -33,10 +32,6 @@ class UserJoinedVoiceChannelQuery(DataQueryABC):
|
||||
def resolve_user(x: UserJoinedVoiceChannel, *_):
|
||||
return x.user
|
||||
|
||||
@staticmethod
|
||||
def resolve_server(x: UserJoinedVoiceChannel, *_):
|
||||
return x.user.server
|
||||
|
||||
@staticmethod
|
||||
def resolve_joined_on(x: UserJoinedVoiceChannel, *_):
|
||||
return x.joined_on
|
||||
|
Loading…
Reference in New Issue
Block a user