Skip to content

Commit

Permalink
fix(discord): support user avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 29, 2021
1 parent d70fdcf commit 14c92ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/adapter-discord/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as DC from './types'

export const adaptUser = (user: DC.DiscordUser): UserInfo => ({
userId: user.id,
avatar: user.avatar,
avatar: `https://cdn.discordapp.com/avatars/${user.id}/${user.avatar}.png`,
username: user.username,
discriminator: user.discriminator,
isBot: user.bot || false,
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-github/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function apply(ctx: Context, config: Config = {}) {
.userFields(['ghAccessToken', 'ghRefreshToken'])
.option('add', '-a 监听一个新的仓库')
.option('delete', '-d 移除已监听的仓库')
.option('subscribe', '-s 添加完成后更新到订阅', { hidden: true })
.option('subscribe', '-s 添加完成后更新到订阅')
.action(async ({ session, options }, name) => {
if (options.add || options.delete) {
if (!name) return '请输入仓库名。'
Expand Down

0 comments on commit 14c92ca

Please sign in to comment.