Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Back to post

Revisions 4

2 years ago
Yong Sheng Tan
39 × 2 Administrator
Unable to get user details
My bot lacks permissions to
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called ```python async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) ``` but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: ```python user = await self._users.get_user_detail(context.affected_user_id) ``` I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called ```python async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) ``` but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: ```python user = await self._users.get_user_detail(context.affected_user_id) ``` I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
#bot #bdk #python
#bot #bdk #python
2 years ago
Yong Sheng Tan
39 × 2 Administrator
My bot lacks permissions to
My bot lacks permissions to
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called ```python async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) ``` but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: ```python user = await self._users.get_user_detail(context.affected_user_id) ``` I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: user = await self._users.get_user_detail(context.affected_user_id) I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
#bot #bdk #python
#bot #bdk #python
2 years ago
My bot lacks permissions to
My bot lacks permissions to
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: user = await self._users.get_user_detail(context.affected_user_id) I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: user = await self._users.get_user_detail(context.affected_user_id) I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
#bot #bdk #python
#question
2 years ago
Original
My bot lacks permissions to

I'm implementing a UserJoinedRoomContext watcher in my bot. The code gets called async def on_activity(self, context: UserJoinedRoomContext): user = await self._users.get_user_detail(context.affected_user_id) message = 'Welcome' await self._messages.send_message(context.source_event.stream.stream_id, self.template.render(message=message)) but I receive a permission exception "User does not have the proper privilege to perform this action." in this line: user = await self._users.get_user_detail(context.affected_user_id) I'm pretty sure the bot has all the permissions it needs. Is there something special I need to look for?
#question