Skip to content

Commit

Permalink
topic なんてプレフィックスいらんくね?
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeno-hito committed Nov 19, 2024
1 parent 9355ee8 commit 858c658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/handler/internal/traq/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (h Handler) NewTopic(p *payload.MessageCreated) {
if _, err := h.bot.API().ChannelApi.
EditChannelTopic(context.Background(), targetChannelId).
PutChannelTopicRequest(traq.PutChannelTopicRequest{
Topic: fmt.Sprintf("現在のトピック: %s", topic),
Topic: topic,
}).Execute(); err != nil {
log.Error(err)
}
Expand Down Expand Up @@ -142,7 +142,7 @@ func (h Handler) CloseTopic(p *payload.MessageCreated) {
if _, err := h.bot.API().ChannelApi.
EditChannelTopic(context.Background(), channelId).
PutChannelTopicRequest(traq.PutChannelTopicRequest{
Topic: "現在進行中のトピックはありません",
Topic: "",
}).Execute(); err != nil {
log.Error(err)
}
Expand Down Expand Up @@ -198,7 +198,7 @@ func (h Handler) RenameTopic(p *payload.MessageCreated) {
if _, err := h.bot.API().ChannelApi.
EditChannelTopic(context.Background(), channelId).
PutChannelTopicRequest(traq.PutChannelTopicRequest{
Topic: fmt.Sprintf("現在のトピック: %s", topic),
Topic: topic,
}).Execute(); err != nil {
log.Error(err)
}
Expand Down

0 comments on commit 858c658

Please sign in to comment.