apps

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlack

func NewSlack(botToken string) *slack

Types

type Slacks

type Slacks interface {
	CreateNewChannel(ctx context.Context, name string, isPrivate ...bool) (*slackentity.Response[slackentity.Channel], error)
	InviteUserToChannel(ctx context.Context, channelId string, users ...string) error
	ArchiveChannel(ctx context.Context, channelId string) error
	AddReminderToChannel(ctx context.Context, channelId, textReminder, time string) error
	PostMessageText(ctx context.Context, destId string, text string) error
	PostMessageBlocks(ctx context.Context, destId string, blocksString string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL