(value *string, fallback string)
| 1575 | } |
| 1576 | |
| 1577 | func derefString(value *string, fallback string) string { |
| 1578 | if value == nil || strings.TrimSpace(*value) == "" { |
| 1579 | return fallback |
| 1580 | } |
| 1581 | return *value |
| 1582 | } |
| 1583 | |
| 1584 | func isThreadChannel(channelType discordgo.ChannelType) bool { |
| 1585 | return channelType == discordgo.ChannelTypeGuildPublicThread || |
no outgoing calls
no test coverage detected