Skip to content

Commit

Permalink
slow-quiz: Use getUserMention for mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Sep 5, 2023
1 parent 0b818e0 commit 02e49b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slow-quiz/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ class SlowQuiz {
increment(user, 'slowquiz-register-quiz');

await this.postShortMessage({
text: `<@${user}>が1日1文字クイズの問題を登録したよ💪`,
text: `${getUserMention(user)}が1日1文字クイズの問題を登録したよ💪`,
blocks: [
{
type: 'section',
text: {
type: 'mrkdwn',
text: `<@${user}>が1日1文字クイズの問題を登録したよ💪`,
text: `${getUserMention(user)}が1日1文字クイズの問題を登録したよ💪`,
},
},
],
Expand Down Expand Up @@ -876,7 +876,7 @@ class SlowQuiz {
*A. ${game.answer} (${game.ruby})*
出題者: <@${game.author}>
出題者: ${getUserMention(game.author)}
`,
},
accessory: {
Expand Down Expand Up @@ -904,7 +904,7 @@ class SlowQuiz {
elements: [
{
type: 'mrkdwn',
text: `*${i + 1}位* <@${answer.user}> (${answer.progress}文字)`,
text: `*${i + 1}位* ${getUserMention(answer.user)} (${answer.progress}文字)`,
},
{
type: 'image',
Expand Down

0 comments on commit 02e49b7

Please sign in to comment.