func identifyRequestType(message slack.InteractionCallback) string {

	// Check if the request is button pushed message.
	if message.Type == slack.InteractionTypeBlockActions && message.View.Hash == "" {
		return reqButtonPushedAction
	}

	// Check if the request is order modal submission.
	if message.Type == slack.InteractionTypeViewSubmission && strings.Contains(message.View.CallbackID, reqOrderModalSubmission) {
		return reqOrderModalSubmission
	}

	// Check if the request is confirmation modal submission.
	if message.Type == slack.InteractionTypeViewSubmission && strings.Contains(message.View.CallbackID, reqConfirmationModalSubmission) {
		return reqConfirmationModalSubmission
	}

	return reqUnknown
}
// identifyRequestType returns the request type of a slack message.
identifyRequestType returns the request type of a slack message.
// identifyRequestType returns the request type of a slack message .
func identifyRequestType(message slack.InteractionCallback) string {
	if message.Type == slack.InteractionTypeBlockActions && message.View.Hash == "" {
		return reqButtonPushedAction
	}
	if message.Type == slack.InteractionTypeViewSubmission && strings.Contains(message.View.CallbackID, reqOrderModalSubmission) {
		return reqOrderModalSubmission
	}
	if message.Type == slack.InteractionTypeViewSubmission && strings.Contains(message.View.CallbackID, reqConfirmationModalSubmission) {
		return reqConfirmationModalSubmission
	}
	return reqUnknown
}
func identifyRequestType ( message slack . InteractionCallback ) string { if message . Type == slack . InteractionTypeBlockActions && message . View . Hash == " " { return reqButtonPushedAction } if message . Type == slack . InteractionTypeViewSubmission && strings . Contains ( message . View . CallbackID , reqOrderModalSubmission ) { return reqOrderModalSubmission } if message . Type == slack . InteractionTypeViewSubmission && strings . Contains ( message . View . CallbackID , reqConfirmationModalSubmission ) { return reqConfirmationModalSubmission } return reqUnknown }
identifyRequestType returns the request type of a slack message.
identifyRequestType returns the request type of a slack message .
// Check if the request is button pushed message. // Check if the request is order modal submission. // Check if the request is confirmation modal submission.