Skip to content

Commit

Permalink
feat: add getChannelList
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Oct 11, 2023
1 parent a704ae2 commit bf55150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adapters/lark/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ export class LarkBot extends Bot<LarkBot.Config> {
return Utils.decodeChannel(data)
}

async getChannelList(guildId: string) {
return { data: [await this.getChannel(guildId)] }
}

async getGuild(guildId: string) {
const { data } = await this.internal.getGuildInfo(guildId)
return Utils.decodeGuild(data)
Expand Down

0 comments on commit bf55150

Please sign in to comment.