Query Channels by keyword

Hey,

So the method (getChannels) mentioned in the docs here: Query Channels | Amity Docs doesn’t accept a “keyword” as a parameter. I can only provide a full displayName instead.

The SDK version I’m using is: 6.23.0

Hello @jfiejka could you please share your current code along with some samples of your ‘keyword’?

I don’t think you understood. These are the parameters I can pass to the getChannels method, there’s no “keyword” there. That means I can’t search for a channel with a specific text from the displayName.

type QueryChannels = {
  channelIds?: Amity.Channel['channelId'][];
  displayName?: string;
  membership?: 'all' | 'member' | 'notMember';
  sortBy?: 'displayName' | 'firstCreated' | 'lastCreated' | 'lastActivity';
  types?: Amity.ChannelType[];
  isDeleted?: Amity.Channel['isDeleted'];
  tags?: Amity.Taggable['tags'];
  excludeTags?: Amity.Taggable['tags'];
  limit?: number;
  page?: Amity.Page;
};

Hello @jfiejka , thank you for your clarification. Just to confirm, in your case, the keyword parameter is not available in SDK version 6.23, is that correct?

Have you updated to this version recently? If yes, was it working with the previous version?

Yes, that’s correct. I’ve been using this version for a month or so. Not sure if it worked before as I just started building chats. I can’t bump SDK version to the latest as it was causing some issues with my existing code.

Thank you for the confirmation, our team will further check on this.

1 Like

Hello @jfiejka , We have addressed and resolved the issue you reported in TS SDK V.6.29.1. Please update to this version and check again.