mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
rename SlackEmoji to just Emoji
This commit is contained in:
parent
af3a105e70
commit
4dc04e9bb9
|
@ -28,7 +28,7 @@ const (
|
|||
DepositCredited = DepositStatus("credited")
|
||||
)
|
||||
|
||||
func (s DepositStatus) SlackEmoji() string {
|
||||
func (s DepositStatus) Emoji() string {
|
||||
switch s {
|
||||
case DepositPending:
|
||||
return "⏳"
|
||||
|
@ -121,7 +121,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment {
|
|||
if len(d.Status) > 0 {
|
||||
fields = append(fields, slack.AttachmentField{
|
||||
Title: "Status",
|
||||
Value: string(d.Status) + " " + d.Status.SlackEmoji(),
|
||||
Value: string(d.Status) + " " + d.Status.Emoji(),
|
||||
Short: false,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user